Google Analytics for redirected domain

2 replies

I'm currently working on a website of a client of mine to which i'm supposed to add a tracking script for Google Analytics. I have done this several times with other websites, but not with a redirected domain name. It does not work!

So i was hoping if you could tell me how can i fix this issue. This is the code that i have in my header.php file in Wordpress:

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src=""></script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-xxxxxxx-1');

Thank you for your help!
#analytics #domain #google #redirected
Avatar of Unregistered
Avatar of Unregistered

Trending Topics