Hi
I need to place a Google Analytics Script in the header of the Quark template (restaurant theme).
How should I go about this. It's a bit urgent.
Thanks in advance
Hi
I need to place a Google Analytics Script in the header of the Quark template (restaurant theme).
How should I go about this. It's a bit urgent.
Thanks in advance
Hi wismondodk
Please have a look HERE
Hi Pavit
Thank you for the link. Can't really get my head around, why it's not working properly.
Need this code to be active on the site.
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-CLIENTID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-CLIENTID');
</script>
Have manually placed in before the </head> tag in the default.php file (placed in the gk_quark --> Layouts folder).
Thanks
/ Kristian
Hi again
Okay, it seems like the just posted script is to be found and active.
Last thing is the need of placing the following in the head of the site.
<script async src="https://static.trailhub.io/app.2mmdngjghou0.js"></script>
When adding the script to the beforementioned layout.php file, just before the closing head-tag, the site seems stop working properly.
Should I place the script in a different file?
Best
/ Kristian
wismondodk Should I place the script in a different file?
Could you please edit your first post and add a link to your website and a super user access to it so we can better look at it?