Configure Bludit for Google Analytics?
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>
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 78 times
- Contact:
You can add the code using the plugin HTML Code.
Enable the plugin or open it with "Settings" and insert the code in the field "Header" or "Footer".
Enable the plugin or open it with "Settings" and insert the code in the field "Header" or "Footer".
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets