Title: Javascript error on authentication, version numbers stripped from scripts
Last modified: August 22, 2016

---

# Javascript error on authentication, version numbers stripped from scripts

 *  Resolved [Ragnar Karlsson](https://wordpress.org/support/users/ragnarkarlsson/)
 * (@ragnarkarlsson)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-on-authentication-version-numbers-stripped-from-scripts/)
 * Just a quick fyi
 * When clicking to authenticate with v5.2.7 I got the following in console:
 * Uncaught ReferenceError: yst_popupwindow is not defined
 * On investigation I found that it was because the theme had a filter to remove
   script version numbers, looks like this interfered with the intended authentication
   pop up js. Added a simple if (!is_admin) {} to prevent the issue to the theme
   function.
 * [https://wordpress.org/plugins/google-analytics-for-wordpress/](https://wordpress.org/plugins/google-analytics-for-wordpress/)

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

 *  Thread Starter [Ragnar Karlsson](https://wordpress.org/support/users/ragnarkarlsson/)
 * (@ragnarkarlsson)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-on-authentication-version-numbers-stripped-from-scripts/#post-5592177)
 * Marking as resolved 🙂
 *  [msolovyov](https://wordpress.org/support/users/msolovyov/)
 * (@msolovyov)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-on-authentication-version-numbers-stripped-from-scripts/#post-5592664)
 * Hitting the same issue as you. Where did you add the line ‘if (!is_admin) {} ‘
   to fix it?

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

The topic ‘Javascript error on authentication, version numbers stripped from scripts’
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/)

 * 2 replies
 * 2 participants
 * Last reply from: [msolovyov](https://wordpress.org/support/users/msolovyov/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/javascript-error-on-authentication-version-numbers-stripped-from-scripts/#post-5592664)
 * Status: resolved