Google Analytics for redirected domain

kurosaki4d

Power Member
Joined
Apr 24, 2018
Messages
694
Reaction score
83
Hello,

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:

Code:
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxx-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-xxxxxxx-1');
</script>


Thank you for your help!
 
You can track how many redirects you have from that domain, but I don't think you can track traffic directly on that domain.
 
You can track how many redirects you have from that domain, but I don't think you can track traffic directly on that domain.
Thank you for your reply, but i found a way, i used Google Tag Manger. It solved my problem !
 
Back
Top