Copy link to clipboard
Copied
I added this to as button and it doesn't do anything:
ga('send', 'event', 'nav', 'cheer', 'click');
My GA is on the page? Ideas?
Copy link to clipboard
Copied
Answered my own question... had to format it like this:
gtag('event', 'click', {
'event_category': 'video',
'event_label': 'toydrive',
'transport_type': 'beacon',
'event_callback': function(){document.location = url;}
});