commit 0f76bbf2d809e93903facaa0da9cfd51cabf93fe
parent c30806b15999b4c35649ddea54b2be6ac9a14620
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 21 Oct 2020 17:30:28 +0200
README: filter example, filter Google Analytics utm_* parameters
https://support.google.com/analytics/answer/1033867?hl=nl
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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);