Title: &#8220;Invalid UA code&#8221;
Last modified: February 24, 2017

---

# “Invalid UA code”

 *  Resolved [womenslifecoachuk](https://wordpress.org/support/users/womenslifecoachuk/)
 * (@womenslifecoachuk)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/)
 * Hi
 * I’ve installed the free version of this plug in and have authenticated by google
   account. Every step works fine but when I click “save” I get a message to say“
   Invalid UA code”. I’ve tried entering manually which saves but it is not working(
   I’ve checked with google tag assistant which tells me to install google analytics).

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

 *  [utema](https://wordpress.org/support/users/utema/)
 * (@utema)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8844496)
 * Same here.
 *  [csasser](https://wordpress.org/support/users/csasser/)
 * (@csasser)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8844514)
 * Having similar problem.
 * Auto Authentication with Google works and selecting profile works but upon Save
   get “invalid UA code”
 * If I manually authenticate everything works fine and no errors but don’t get 
   the benefits of plugin.
 * When I go to view source of page is says the following with no UA code:
 * `<!– This site uses the Google Analytics by MonsterInsights plugin v 6.0.11 –
   [https://www.monsterinsights.com/](https://www.monsterinsights.com/) –>
    <!– 
   Normally you will find the Google Analytics tracking code here, but the webmaster
   disabled your user group. –> <!– / Google Analytics by MonsterInsights –>
 * I have recently upgraded site to https but have made all changes in Google console
   and Analytics.
 * Please advise.
    -  This reply was modified 9 years, 3 months ago by [csasser](https://wordpress.org/support/users/csasser/).
 *  [KatrineDS](https://wordpress.org/support/users/katrineds/)
 * (@katrineds)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8847472)
 * Same here. What’s the fix, MonsterInsights?
 *  [antonycc](https://wordpress.org/support/users/antonycc/)
 * (@antonycc)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8847601)
 * I’ve been struggling with too and it appears a new version (6.0.11) was released
   yesterday that has this bug but the previous version (6.0.4) works. [https://wordpress.org/plugins/google-analytics-for-wordpress/changelog/](https://wordpress.org/plugins/google-analytics-for-wordpress/changelog/)
 * The solution that I have found is to de-activate and delete the current version
   then install the old one from a download link.
    1. Manually download the previous version: [https://downloads.wordpress.org/plugin/google-analytics-for-wordpress.6.0.4.zip](https://downloads.wordpress.org/plugin/google-analytics-for-wordpress.6.0.4.zip)
    2. Menu: Plugins / Installed Plugins / “De-activate” then “Delete”.
    3. Menu: Plugins / Add New / Upload Plugin / Select the file, then Activate.
    4. Then try and authenticate with Google Analytics again.
 * After this, WordPress will continue to prompt you to update the outdated plugin.
   Personally I’m going to wait until another new version (after 6.0.11) has been
   out for a few days before upgrading.
    -  This reply was modified 9 years, 3 months ago by [antonycc](https://wordpress.org/support/users/antonycc/).
    -  This reply was modified 9 years, 3 months ago by [antonycc](https://wordpress.org/support/users/antonycc/).
      Reason: Add upgrade advice
 *  Plugin Author [chriscct7](https://wordpress.org/support/users/chriscct7/)
 * (@chriscct7)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8847804)
 * Hi there,
    If you’re getting an error message that says invalid UA code, but 
   the profile is saving (there’s a profile listed on the page when you refresh 
   the settings), ignore the warning. This is happening because you’re likely hitting
   the save button for the page after authenticating, which is running the manual
   UA code validation, which will fail as an invalid UA code since none was entered.
   We will be releasing a new version Monday that doesn’t run the manual UA code
   validation if you are using oAuth (note you don’t need to save the settings page
   following oAuth).
 * Please note, that if you’re trying to view the UA code on the source code of 
   the page, you need to be logged out to see it by default.
 * If you are not seeing a profile on the settings page, next to the button you 
   used to authenticate, please get in touch with us at monsterinsights.com/contact
   via presale.
    -Chris
 *  [zander1001](https://wordpress.org/support/users/zander1001/)
 * (@zander1001)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8854226)
 * Hi, so if I understand right, then as I can see my UA code as “profile active”
   then everything is ok? I think I must have been hitting save changes at the end
   out of habit, as I’ve not much idea what I’m doing!
    Is there a way for me to
   double check that my Google Analytics account is working properly ie log into
   something else?
 * Many thanks in advance!
 *  Plugin Author [chriscct7](https://wordpress.org/support/users/chriscct7/)
 * (@chriscct7)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8855017)
 * Hi there,
    That is/was correct. This bug is now fixed in the latest version of
   MonsterInsights
 * -Chris
 *  [freedomisajourney](https://wordpress.org/support/users/freedomisajourney/)
 * (@freedomisajourney)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8857159)
 * I can verify, I was getting the same error.
 * Once I updated the plugin, now when I hit save (without changing anything) the
   error is gone.
 *  [zander1001](https://wordpress.org/support/users/zander1001/)
 * (@zander1001)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8861078)
 * Ok, I’ve tried again and the error message has gone as you say. Thanks for your
   help!
 *  Plugin Author [chriscct7](https://wordpress.org/support/users/chriscct7/)
 * (@chriscct7)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8861883)
 * Not a problem!
 * -Chris
 *  [bestclassicbands](https://wordpress.org/support/users/bestclassicbands/)
 * (@bestclassicbands)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8881227)
 * Ever since the update a couple of weeks’ ago, I’m unable to get the detailed 
   info of my posts’ Page Views and Sources, beyond the Top 10.
 * I’ve tried to Re-Authenticate on the Settings page multiple times, with no luck.
 * Insights worked beautifully for me until the latest update and now it’s of no
   use.
 * Can you walk me through a step-by-step as I simply don’t follow what you need
   me to do?
 * Thanks!
 *  [bestclassicbands](https://wordpress.org/support/users/bestclassicbands/)
 * (@bestclassicbands)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8905076)
 * Still not working for me even though we’ve updated the plug-in. Would appreciate
   your help as I need the data.
 * Thanks…
 *  [antonycc](https://wordpress.org/support/users/antonycc/)
 * (@antonycc)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8905217)
 * [@bestclassicbands](https://wordpress.org/support/users/bestclassicbands/) Instructions
   to roll back the plugin a couple of weeks are here: [https://wordpress.org/support/topic/invalid-ua-code/#post-8847601](https://wordpress.org/support/topic/invalid-ua-code/#post-8847601)
 * You might want to scan the release notes of the last two releases to make sure
   there are no bugs with a greater impact than the current problem.
 *  Plugin Author [chriscct7](https://wordpress.org/support/users/chriscct7/)
 * (@chriscct7)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8905478)
 * > I’m unable to get the detailed info of my posts’ Page Views and Sources, beyond
   the Top 10.
 * It doesn’t sound like there’s actually a bug here. It sounds like you’re authenticated,
   and you’re just looking for more information than we currently present. Right
   now we show the top pages/posts for the month, top referring domains, top countries,
   etc. We’ll be expanding our reporting in upcoming releases througouht the year.
 * Note, we do not recommend rolling back versions, as it can lead to unexpected
   issues with updating back up, particularly as we do not garuntee the upgrade 
   routines to be idempotent.
 * -Chris
 *  [bestclassicbands](https://wordpress.org/support/users/bestclassicbands/)
 * (@bestclassicbands)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8905496)
 * @chriscc7
 * Thanks for the note. I’m surprised because before the recent update I was able
   to find Page Views for every single post on my site, which I’ve come to depend
   on.

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

The topic ‘“Invalid UA code”’ is closed to new replies.

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

 * 15 replies
 * 9 participants
 * Last reply from: [bestclassicbands](https://wordpress.org/support/users/bestclassicbands/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/invalid-ua-code/#post-8905496)
 * Status: resolved