Created
November 6, 2014 18:15
-
-
Save bschwartz/3c979eccbe6f4cd65c7a to your computer and use it in GitHub Desktop.
Scrub all query params with FreshURL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FreshUrl.waitsFor(function(){freshUrl.allReady()}).then(function(){ | |
// This will fire once all analytics platforms are ready | |
// Scrub everything in the query string, not just utm_* | |
window.history.replaceState({}, '', window.location.pathname + window.location.hash); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment