Title: Problem with Google analytics
Last modified: September 4, 2020

---

# Problem with Google analytics

 *  Resolved [Maximus697](https://wordpress.org/support/users/maximus697/)
 * (@maximus697)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problem-with-google-analytics-6/)
 * Hi,
 * Thank u for your plugin.
 * I have a problem when I put “deferred” for “Load Inline JS” on chrome, not on
   firefox.
 * Uncaught ReferenceError: ga is not defined
 * It’s work when I put “after dom ready” but I have a lower score on pageseed
 * Thx
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-google-analytics-6%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problem-with-google-analytics-6/#post-13362285)
 * Hi,
 * Could you please try exclude GA from being deferred and see how it goes ?
 * Best regards,
 *  Thread Starter [Maximus697](https://wordpress.org/support/users/maximus697/)
 * (@maximus697)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problem-with-google-analytics-6/#post-13362329)
 * I tried to put:
 * [http://www.google-analytics.com/analytics.js](http://www.google-analytics.com/analytics.js)
   
   [http://www.googletagmanager.com/gtag/js](http://www.googletagmanager.com/gtag/js)
   [http://www.googletagmanager.com/gtm.js](http://www.googletagmanager.com/gtm.js)
   [http://www.googletagservices.com/tag/js/gpt.js](http://www.googletagservices.com/tag/js/gpt.js)
 * in JS deferred excludes but It’s doesn’t work
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problem-with-google-analytics-6/#post-13362334)
 * Hi,
 * why I don’t see any GA code in your page ?
 * [https://www.etienne-coffeeshop.com/?LSCWP_CTRL=before_optm](https://www.etienne-coffeeshop.com/?LSCWP_CTRL=before_optm)
 * Best regards,
 *  Thread Starter [Maximus697](https://wordpress.org/support/users/maximus697/)
 * (@maximus697)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problem-with-google-analytics-6/#post-13364928)
 * Hi,
 * I don’t know but it’s working.
 * After optm there are :
    <link rel=”dns-prefetch” href=”//www.google-analytics.
   com”> <link rel=”dns-prefetch” href=”//www.googletagmanager.com”> <link rel=”
   dns-prefetch” href=”//www.googletagservices.com”>
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problem-with-google-analytics-6/#post-13366421)
 * Hi,
 * I’m sorry ? is it working or not working ?
 * Best regards,
 *  Thread Starter [Maximus697](https://wordpress.org/support/users/maximus697/)
 * (@maximus697)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problem-with-google-analytics-6/#post-13366447)
 * Hi,
 * I found the problem. It’s good
 * Thank u
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problem-with-google-analytics-6/#post-13366482)
 * Hi,
 * If you don’t mind , I would like to know what was it ? and how you fix it ?
 * Best regards,
 *  Thread Starter [Maximus697](https://wordpress.org/support/users/maximus697/)
 * (@maximus697)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problem-with-google-analytics-6/#post-13370029)
 * Hi,
 * Yes sorry, because I forgot to check the “Enable Standard Tracking” box on the
   plugin

Viewing 8 replies - 1 through 8 (of 8 total)

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

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Maximus697](https://wordpress.org/support/users/maximus697/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/problem-with-google-analytics-6/#post-13370029)
 * Status: resolved