• Hey all,

    We’ve activated this plugin but no real-time events are firing in GA. We’ve integrated GA via the Insert Headers and Footers plugin.
    Code has been added to source
    No errors in console

    We use sticky headers but when we deactivated them in a test run there were still no real-time events.Any help is appreciated.

Viewing 1 replies (of 1 total)
  • Sorry we missed this back when you posted.
    Are you using the gtag form of GA, or one of the older snippets?

    As part of my WordPress 5 testing, I just ran this with the gtag method on a site using Code Snippets.

    <?php
      add_action('wp_head', 'fb4_add_googleanalytics', 1);
    function fb4_add_googleanalytics() { ?>
      <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-********-x"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'UA-********-x');
    </script>
    <?php
    }

    Again, sorry for long delay.

Viewing 1 replies (of 1 total)
  • The topic ‘Events don’t fire in GA’ is closed to new replies.