diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-10-21 17:30:28 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-10-21 17:30:28 +0200 |
commit | 0f76bbf2d809e93903facaa0da9cfd51cabf93fe (patch) | |
tree | 57e03ca322e5aea640a2f99a2fed8dbfc96fc3ec | |
parent | c30806b15999b4c35649ddea54b2be6ac9a14620 (diff) |
README: filter example, filter Google Analytics utm_* parameters
https://support.google.com/analytics/answer/1033867?hl=nl
-rw-r--r-- | README | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |