• Resolved lh514

    (@lh514)


    Just got a note from GA today (as probably EVERYONE did), showing the new gtag.js.

    I cannot find ANYWHERE within MonsterInsights how to update it with this new code below…so I used Wizard to install again, but never got the chance to add this. HELP.
    (I’ve removed my UA tag, btw)

    GA site says:
    Website Tracking
    Global Site Tag (gtag.js)
    This is the Global Site Tag (gtag.js) tracking code for this property. Copy and paste this code as the first item into the <HEAD> of every webpage you want to track. If you already have a Global Site Tag on your page, simply add the config line from the snippet below to your existing Global Site Tag.

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

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author chriscct7

    (@chriscct7)

    Hi there,
    All sites using our plugin use gtag.js if they are on the latest version — there’s no option because its the only tracking version we support in the current version.

    I’d recommend making sure MonsterInsights is up to date, and if it is please send us a ticket at MonsterInsights.com/lite-support and we can definitely look into this for you.

    -Chris

Viewing 1 replies (of 1 total)

The topic ‘New gtag.js’ is closed to new replies.