Title: Google analytics script
Last modified: August 31, 2016

---

# Google analytics script

 *  [jmonteil](https://wordpress.org/support/users/jmonteil/)
 * (@jmonteil)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/google-analytics-script-2/)
 * Hi,
 * I have some validation errors in the Google Search Console.
    After checking my
   source code, it appears that the following script from Google Analytics is the
   problem :
 * ‘<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-XXXXXXX-X’, ‘auto’);
    ga(‘send’, ‘pageview’);
 * </script>’
 * Does any of view managed to fix this ?
 * Thansk in advance,
 * Joffrey
 * [https://wordpress.org/plugins/amp/](https://wordpress.org/plugins/amp/)

The topic ‘Google analytics script’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jmonteil](https://wordpress.org/support/users/jmonteil/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/google-analytics-script-2/)
 * Status: not resolved