Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1217847

    Hello, I’m looking to add my google analytics tracking code in Enfold Child -> Google Services -> Google Analytics Tracking Code. The help text says I can add the full tracking code, so this is what I’ve added:

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

    Just wanted to double check that this is the correct code to add. Thanks

    #1218083

    Hey swibbycreations,
    This looks correct, if it has been a couple of days you should start seeing the analytics of this, do you?

    Best regards,
    Mike

    #1224433

    Hi Mike

    So sorry, I completely forgot that I posted this thread. Yes, in fact I was already seeing the analytics.

    I just wanted to be sure that I hadn’t added the code in a way that would cause it to double count or something.

    Thanks

    #1224435

    Hi,
    Glad to hear, you should be all set, shall we close this then?

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.