Title: Dropping UTM Strings for Google Analytics
Last modified: March 23, 2018

---

# Dropping UTM Strings for Google Analytics

 *  Resolved [khines](https://wordpress.org/support/users/khines/)
 * (@khines)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/dropping-utm-strings-for-google-analytics/)
 * I’m having an issue with this plug-in where once you click “Yes” to verify your
   age my Google Analytics UTM strings are dropping once we enter the website.
 * Example if I have abc.com?utm_source=test&utm_medium=test&utm_campaign=test as
   my current URL and the age verification comes up. You click yes and site directs
   to just abc.com dropping my UTM parameters keeping Google Analytics from parsing
   the UTM strings.
 * Is there a setting or fix to keep the current URL with parameters once you click
   the Yes button to verify your age?

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

 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/dropping-utm-strings-for-google-analytics/#post-10109155)
 * Hi [@khines](https://wordpress.org/support/users/khines/),
 * I don’t seem to be able to reproduce this in either Standard or JS mode of the
   plugin. Any parameters are staying put on my testing environment. Do you have
   any other plugins that could be updating the query parameter? Also what permalink
   structure are you using, and what age gate settings?
 * A bit of an aside, but how are you adding the GA code as if it’s enqueued via
   the wp_enqueue_script it should still be on the page and tracking happening whether
   they are age gated or not.
 * If you have a testing link you can send I’ll happily take another look at it.
 * Thanks
    Phil
 *  Thread Starter [khines](https://wordpress.org/support/users/khines/)
 * (@khines)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/dropping-utm-strings-for-google-analytics/#post-10121692)
 * Hey Phil,
 * I found the issue. The plugin version we were using was out of date. We were 
   on version 1.4. We updated to current version and issue was resolved. Thank you.

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

The topic ‘Dropping UTM Strings for Google Analytics’ is closed to new replies.

 * ![](https://ps.w.org/age-gate/assets/icon-256x256.png?rev=2783003)
 * [Age Gate](https://wordpress.org/plugins/age-gate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/age-gate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/age-gate/)
 * [Active Topics](https://wordpress.org/support/plugin/age-gate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/age-gate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/age-gate/reviews/)

## Tags

 * [utm](https://wordpress.org/support/topic-tag/utm/)

 * 2 replies
 * 2 participants
 * Last reply from: [khines](https://wordpress.org/support/users/khines/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/dropping-utm-strings-for-google-analytics/#post-10121692)
 * Status: resolved