From 0f76bbf2d809e93903facaa0da9cfd51cabf93fe Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 21 Oct 2020 17:30:28 +0200 Subject: README: filter example, filter Google Analytics utm_* parameters https://support.google.com/analytics/answer/1033867?hl=nl --- README | 4 ++-- 1 file 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); -- cgit v1.2.3