• Resolved abt2018

    (@abt2018)


    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://ww.wp.xz.cn/plugins/google-analytics-dashboard-for-wp/

    How can I fix this?

    Many thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    (@abt2018)

    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.