• Resolved Nick Rosenthal

    (@promo25)


    Your plugin gives us three options:
    1. analytics.js (Recommended)
    2. ga.js
    3. Google Analytics by MonsterInsights plugin AND Universal Tracking

    My analytics code looks like the below as per Google’s newest recommendations:

    <!– Global site tag (gtag.js) – Google Analytics –>
    <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-14″></script&gt;
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());

    gtag(‘config’, ‘UA-XXXXXXXX-14’);
    </script>

    Which of the three options should I be using, or does your plugin need an update?

    Many thanks for the help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Okoth1

    (@okoth1)

    Hi,

    Yes the plugin should be updated. Haven’t had time for it yet.

    Anonymous User 14978628

    (@anonymized-14978628)

    Was just about to ask the same thing! Does that mean this plugin can’t be used with the Global site tag (gtag.js)?

    Plugin Author Okoth1

    (@okoth1)

    Yes. Working on it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘gtag.js ?’ is closed to new replies.