google analytics not working

Community Beginner ,
Nov 15, 2020 Nov 15, 2020

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?

Views

60

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 15, 2020 Nov 15, 2020

Copy link to clipboard

Copied

LATEST

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;}
});

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines