• Resolved sunlight1976

    (@sunlight1976)


    HI, I read the documentation and the forum, but I can’t understand a couple of things.

    I have a GA4 property with a stream with id G-79P66*****. In Analytics website it gives the code to add GA4 manually to a website, and the code contains that id:

    <script async src="https://www.googletagmanager.com/gtag/js?id=G-79P66*****"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'G-79P66*****');
    </script>

    I installed Google SiteKit plugin, I connected Analytics, I choose my GA4 property and stream, it shows my G-79P66***** and also a Google Tag Id GT-P******.

    I did not connect Google Tag Manager because I don’t use it.

    After installed SiteKit, in my webpage source I see that code generated uses Google Tag Id, not my stream id. Is it correct?

    <!-- Snippet Google Analytics aggiunto da Site Kit -->
    <script type='text/javascript' src='https://www.googletagmanager.com/gtag/js?id=GT-P******' id='google_gtagjs-js' async></script>
    <script id="google_gtagjs-js-after" type="text/javascript">
    window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}
    gtag('set', 'linker', {"domains":["studiolegaleasmahi.it"]} );
    gtag("js", new Date());
    gtag("set", "developer_id.dZTNiMT", true);
    gtag("config", "GT-P******");
    </script>
    
    <!-- Termina lo snippet Google Analytics aggiunto da Site Kit -->

    Is it possible that playing around with Google Tag Manager I did something wrong?

    I started to investigate because it seems that Google Analytics realtime section do not catch all (non logged-in) users…

    Many thanks.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for reaching out @sunlight1976. Site Kit uses the new Google tag to connect GA4 with a users site. This differs to Google Tag Manager, and you’ll find more about how the Google tag works with Site Kit below:
    https://sitekit.withgoogle.com/documentation/using-site-kit/the-google-tag/

    After installed SiteKit, in my webpage source I see that code generated uses Google Tag Id, not my stream id. Is it correct?

    The code snippet you shared for your site is correct and valid, as you’ll see from this guide on what to expect when Site Kit is used to place your Google Analytics snippet. It can indeed be confusing regarding the GT- prefix but this is normal and expected.

    I also checked your site and I can confirm that you’re Google Analytics tag is firing as expected. You can use tagassistant.google.com to check this yourself.

    Let me know if you have any further questions with the above.

    Plugin Support James Osborne

    (@jamesosborne)

    As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you continue to encounter issues, or reopen this topic and we’d be happy to assist.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘GT- Vs G-’ is closed to new replies.