31 March 2023

Google Analytics 4

 Toevoegen GA4 code in template


zie https://www.dtheblerd.com/2022/06/add-google-analytics-4-to-blogspot-website-with-global-site-tag.html


Editeer dus de template die je gebruikt en zet net voor </head> de GA4 code


<!-- Google tag (gtag.js) -->

<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXX"></script>

<script>

  window.dataLayer = window.dataLayer || [];

  function gtag(){dataLayer.push(arguments);}

  gtag('js', new Date());


  gtag('config', 'G-BW5P069ZQ0');

</script>


De id MEASUREMENT ID vind je in https://analytics.google.com/ > Webstream details