Skip to main content
Known Participant
November 16, 2020
Question

google analytics not working

  • November 16, 2020
  • 1 reply
  • 169 views

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?

    This topic has been closed for replies.

    1 reply

    Known Participant
    November 16, 2020

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