Configure Bludit for Google Analytics?
Posted: Fri Apr 07, 2023 8:06 am
I created a Google Analytics account and they say I need to put some code on every page just below the <head> element. How do I do that? I can't find any information on this. I tried putting the code in my theme's index.php file but Google isn't finding it. Is it possible to use Google Analytics with Bludit?
The code is: (id code partially x'd out for privacy)
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/j ... "></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-0TZN98xxxx');
</script>
The code is: (id code partially x'd out for privacy)
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/j ... "></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-0TZN98xxxx');
</script>