gtag.js error

Avatar

Avatar

sathya_prakasha

Avatar

sathya_prakasha

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

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K
kautuk_sahni
Community Manager

16-11-2018

Refer:-

1. Analytics with External Providers​ (For External Analytics)

2.