Connect with google analytics

When using Google Analytics' Events, you can easily create your own custom measurements.

In able for this method to work, your page must have Google Analytics already installed on your website.
An example might look like this:

window.addEventListener('message', function (message) {
if ( && === 'spottButtonAction'){
gtag('event', 'Spott',{
'event_category':'Buy click',


The overall results can be viewed in the Behaviour > Events  tab on your Google Analytics page.


It's good to know that Google Analytics only allows you to see events after about 24 hours. However, you can see them come in real-time. Go to Realtime > Events  on your Google Analytics Page. 

Was this article helpful?
0 out of 0 found this helpful



Article is closed for comments.