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

google analytics not working

Community Beginner ,
Nov 15, 2020 Nov 15, 2020

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?

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

Translate
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