mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-05 08:59:10 -04:00
Merge pull request #963 from alphagov/fix-analytics
Don’t include hostname in page passed to analytics
This commit is contained in:
@@ -136,7 +136,7 @@
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', 'UA-75215134-1', 'auto');
|
||||
// strip UUIDs
|
||||
page = window.location.href.replace(
|
||||
page = (window.location.pathname + window.location.search).replace(
|
||||
/[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}/g, '…'
|
||||
)
|
||||
ga('send', 'pageview', page);
|
||||
|
||||
Reference in New Issue
Block a user