sabecs
asked on
WordPress website not working after adding Google Tracking Code?
WordPress website not working after adding Google Tracking Code?
I have tried adding code via a plugin and also by manually editing header.php file, but still same issue.
This page isn’t working
www.mywebsite.com.au redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
<!-- Google Tag Manager head code-->
<script>(function(w,d,s,l, i){w[l]=w[ l]||[];w[l ].push({'g tm.start':
new Date().getTime(),event:'gt m.js'});va r f=d.getElementsByTagName(s )[0],
j=d.createElement(s),dl=l! ='dataLaye r'?'&l='+l :'';j.asyn c=true;j.s rc=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script ','dataLay er','GTM-D GSRS556'); </script>
<!-- End Google Tag Manager -->
<!-- Google Tag Manager body code (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-DGSRS556"
height="0" width="0" style="display:none;visibi lity:hidde n"></ifram e></noscri pt>
<!-- End Google Tag Manager (noscript) -->
I have tried adding code via a plugin and also by manually editing header.php file, but still same issue.
This page isn’t working
www.mywebsite.com.au redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
<!-- Google Tag Manager head code-->
<script>(function(w,d,s,l,
new Date().getTime(),event:'gt
j=d.createElement(s),dl=l!
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script
<!-- End Google Tag Manager -->
<!-- Google Tag Manager body code (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-DGSRS556"
height="0" width="0" style="display:none;visibi
<!-- End Google Tag Manager (noscript) -->
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This problem is not occurring by adding Google Tracking Code. It is your website redirection problem, which can occur due to some modification has been done to your .htaccess file. Changes in .htaccess file can happen due to some redirection plugins which you have installed. So I would suggest you the same as Britt Thompson said disable plugins one by one then add Google Tracking Code to check the issue is resolve or not.