• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

105

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

Votes

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