The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Online Marketing Tools
    4. When loading Optimize through GTM w/ GA trigger, 2 instances of analytics.js are loaded into DOM - is that right?

    When loading Optimize through GTM w/ GA trigger, 2 instances of analytics.js are loaded into DOM - is that right?

    Online Marketing Tools
    1 1 59
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • robin1979
      robin1979 last edited by

      We're using Google Tag Manager to load GA into the site (on gtm.load). We load Google Optimize tag on top of that, using Google's recommendations (https://support.google.com/optimize/answer/6314801?hl=en). This requires the load of GA to be a trigger for the Google Optimize tag.
      With this setup, when the page is done loading, there are two instances of analytics.js showing up in the DOM. Now different web optimization sites are telling me the script is loaded and parsed twice, which is of course unwanted behaviour.. But I'm not sure if that's actually the case, because I'm not seeing anything that points to that when looking at the chaining, for instance.

      Anyone familiar with this by any chance..?

      URT5L3v

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      • No data in Analytics
        shahryar89
        shahryar89
        0
        2
        42

      • What Industries / platforms / do online marketing well and what are those that fail? Why?
        Nayotanguyen
        Nayotanguyen
        0
        3
        263

      • How can I create a funnel report in Google Analytics if I don't have a /thank-you or conversion page?
        Martijn_Scheijbeler
        Martijn_Scheijbeler
        0
        8
        220

      • Broad/phrase/exact in one adgroup... what to do next?
        howlusa
        howlusa
        0
        5
        126

      • Transcript Software? / Podcast Software ?/ & Do i need multiple Itune Accounts for two different podcasts
        MattAntonino
        MattAntonino
        0
        2
        260

      • In Page Analytics Not Showing For My ASP ImageButtons (Google Analytics)
        Resultify
        Resultify
        0
        2
        1.2k

      • Analytics
        GrouchyKids
        GrouchyKids
        0
        5
        531

      • Tool/Service for Testing CTR in Title/Description tags in SERPs
        KeriMorgret
        KeriMorgret
        0
        4
        548

      Get started with Moz Pro!

      Unlock the power of advanced SEO tools and data-driven insights.

      Start my free trial
      Products
      • Moz Pro
      • Moz Local
      • Moz API
      • Moz Data
      • STAT
      • Product Updates
      Moz Solutions
      • SMB Solutions
      • Agency Solutions
      • Enterprise Solutions
      • Digital Marketers
      Free SEO Tools
      • Domain Authority Checker
      • Link Explorer
      • Keyword Explorer
      • Competitive Research
      • Brand Authority Checker
      • Local Citation Checker
      • MozBar Extension
      • MozCast
      Resources
      • Blog
      • SEO Learning Center
      • Help Hub
      • Beginner's Guide to SEO
      • How-to Guides
      • Moz Academy
      • API Docs
      About Moz
      • About
      • Team
      • Careers
      • Contact
      Why Moz
      • Case Studies
      • Testimonials
      Get Involved
      • Become an Affiliate
      • MozCon
      • Webinars
      • Practical Marketer Series
      • MozPod
      Connect with us

      Contact the Help team

      Join our newsletter
      Moz logo
      © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
      • Accessibility
      • Terms of Use
      • Privacy