• Resolved infozelt

    (@infozelt)


    Hi there,

    I’m trying to set up the gtm4wp plugin with a newly created GTM ID but this ID has the format G-XXXXXXXXXX instead of GTM-XXXXX. Hence the plugin doesn’t support the G-XXXXXXXXXX format. Did the format change or did I set up GTM incorrectly?

    GTM suggests to embed with the following snippet:

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

    Thanks a lot in advance!
    Tobi

Viewing 1 replies (of 1 total)
  • Thread Starter infozelt

    (@infozelt)

    Ok, found the issue myself:

    Instead of a “GTM container” I created a “Google Analytics 4 ID”. Whoever stumbled across the same problem, just go to https://tagmanager.google.com instead of analytics.goole.com

Viewing 1 replies (of 1 total)

The topic ‘GTM ID format change?’ is closed to new replies.