summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-10-21 17:30:28 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-10-21 17:30:28 +0200
commit0f76bbf2d809e93903facaa0da9cfd51cabf93fe (patch)
tree57e03ca322e5aea640a2f99a2fed8dbfc96fc3ec /README
parentc30806b15999b4c35649ddea54b2be6ac9a14620 (diff)
README: filter example, filter Google Analytics utm_* parameters
https://support.google.com/analytics/answer/1033867?hl=nl
Diffstat (limited to 'README')
-rw-r--r--README4
1 files changed, 2 insertions, 2 deletions
diff --git a/README b/README
index fa8e740..e057283 100644
--- a/README
+++ b/README
@@ -295,8 +295,8 @@ advertisements, strip tracking parameters and more.
# strip tracking parameters
# urchin, facebook, piwik, webtrekk and generic.
- gsub(/\?(ad|campaign|fbclid|pk|tm|wt)_([^&]+)/, "?", s);
- gsub(/&(ad|campaign|fbclid|pk|tm|wt)_([^&]+)/, "", s);
+ gsub(/\?(ad|campaign|fbclid|pk|tm|utm|wt)_([^&]+)/, "?", s);
+ gsub(/&(ad|campaign|fbclid|pk|tm|utm|wt)_([^&]+)/, "", s);
gsub(/\?&/, "?", s);
gsub(/[\?&]+$/, "", s);