Highlighted

gtag.js error

sathya_prakasha

25-10-2018

Hi Team,

We are trying to add a gtag.js in particular page. After replication we are getting 404 error due to minnification of gtag.js

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

  gtag
('config', 'GA_TRACKING_ID');
</script>

Any help here ?

Replies