Title: ReferenceError: gtag is not defined at HTMLDocument.
Last modified: March 21, 2021

---

# ReferenceError: gtag is not defined at HTMLDocument.

 *  Resolved [roadlink](https://wordpress.org/support/users/roadlink/)
 * (@roadlink)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/referenceerror-gtag-is-not-defined-at-htmldocument/)
 * Hello,
 * Chrome’s lighthouse tool shows this error after I installed this plugin.
    How
   to fix it?
 * **Browser errors were logged to the console**
    Errors logged to the console indicate
   unresolved problems. They can come from network request failures and other browser
   concerns. Learn more
 * `ReferenceError: gtag is not defined at HTMLDocument.<anonymous> (https://www.
   mysite.com/:1666:4) at e (https://www.gaming.gen.tr/wp-includes/js/jquery/jquery.
   min.js?ver=3.5.1&sb-version=1607979518:2:30005) at t (https://www.mysite.com/
   wp-includes/js/jquery/jquery.min.js?ver=3.5.1&sb-version=1607979518:2:30307)`

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

 *  Plugin Support [Damianne P (a11n)](https://wordpress.org/support/users/drwpcom/)
 * (@drwpcom)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/referenceerror-gtag-is-not-defined-at-htmldocument/#post-14262595)
 * Hi [@roadlink](https://wordpress.org/support/users/roadlink/). Would you please
   share your system report with me. You can find it by going to WooCommerce > Status
   > Get system report and then click Copy for support to be able to paste it in
   your reply.
 *  Plugin Support [Damianne P (a11n)](https://wordpress.org/support/users/drwpcom/)
 * (@drwpcom)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/referenceerror-gtag-is-not-defined-at-htmldocument/#post-14291775)
 * Hi [@roadlink](https://wordpress.org/support/users/roadlink/). We haven’t heard
   from you in a while so I’m going to go ahead and mark this thread as resolved.
   If you still need help with this issue or have any other questions about this
   plugin, please start a new thread.

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

The topic ‘ReferenceError: gtag is not defined at HTMLDocument.’ is closed to new
replies.

 * ![](https://ps.w.org/woocommerce-google-analytics-integration/assets/icon-256x256.
   png?rev=3234358)
 * [Google Analytics for WooCommerce](https://wordpress.org/plugins/woocommerce-google-analytics-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-google-analytics-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-google-analytics-integration/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Damianne P (a11n)](https://wordpress.org/support/users/drwpcom/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/referenceerror-gtag-is-not-defined-at-htmldocument/#post-14291775)
 * Status: resolved