GT- Vs G- | WordPress.org
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]
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس