Title: ReferenceError: UA is not defined wordpress
Last modified: December 3, 2018

---

# ReferenceError: UA is not defined wordpress

 *  Resolved [abt2018](https://wordpress.org/support/users/abt2018/)
 * (@abt2018)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/referenceerror-ua-is-not-defined-wordpress/)
 * Hello Helpful Folks,
 * I have a problem that I don’t know the origin of in my console.
 * “ReferenceError: UA is not defined wordpress”
 * I have my Google Analytics key entered in my theme, and have the GA plugin installed,
   with the key there too.
 * I’m using your plugin: Google Analytics Dashboard for WP (GADWP).
    [https://wordpress.org/plugins/google-analytics-dashboard-for-wp/](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/)
 * How can I fix this?
 * Many thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Freferenceerror-ua-is-not-defined-wordpress%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [jaygidwitz](https://wordpress.org/support/users/jaygidwitz/)
 * (@jaygidwitz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/referenceerror-ua-is-not-defined-wordpress/#post-10943638)
 * Hi There,
 * Please remove the UA code from your theme.
 * The plugin you’re using is outputting the Google Analytics code correctly.
 * But the UA code you’ve input in your theme is not valid Javascript (and so it’s
   causing the console error) and furthermore isn’t required since the plugin is
   taking is of it.
 * Thanks!
 * -Jay
 *  Thread Starter [abt2018](https://wordpress.org/support/users/abt2018/)
 * (@abt2018)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/referenceerror-ua-is-not-defined-wordpress/#post-10943699)
 * Thank you, kind sir!
 * This fixed the problem.
 * Best wishes.

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

The topic ‘ReferenceError: UA is not defined wordpress’ is closed to new replies.

 * ![](https://ps.w.org/google-analytics-dashboard-for-wp/assets/icon.svg?rev=2243225)
 * [ExactMetrics - Google Analytics Dashboard for WordPress (Website Stats Plugin)](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [abt2018](https://wordpress.org/support/users/abt2018/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/referenceerror-ua-is-not-defined-wordpress/#post-10943699)
 * Status: resolved