AMP errors with analytics
-
Hi.
I’m using Google analytics by Monsterinsights.My search console comes up with the error that there is user-created JavaScript on my website, and therefore AMP pages are not shown.
When looking into what’s causing the errors, I see that it has something to do with the Analytics that creates a script.. How do I fix this?? ??
I put the 2 codes here:
<script>
(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);ga(‘create’, ‘UA-43334056-2’, ‘auto’);
ga(‘send’, ‘pageview’);</script>
<script async type=’text/javascript’ src=’https://www.konkurrencer-nonstop.dk/wp-content/plugins/cleantalk-spam-protect/inc/cleantalk_nocache.js?random=5.50′></script>
</body>
- The topic ‘AMP errors with analytics’ is closed to new replies.