diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-10-12 20:10:44 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-10-12 20:13:46 +0200 |
commit | 74df6f66ab2b6cf1857658151f9076c585911b7f (patch) | |
tree | de5d457739d93372b9983e06054a817a4cbed8f0 /README | |
parent | 33c50db302957bca2a850ac8d0b960d05ee0520e (diff) |
README: filter example: strip Facebook fbclid parameter
Diffstat (limited to 'README')
-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|pk|tm|wt)_([^&]+)/, "?", s); - gsub(/&(ad|campaign|pk|tm|wt)_([^&]+)/, "", s); + gsub(/\?(ad|campaign|fbclid|pk|tm|wt)_([^&]+)/, "?", s); + gsub(/&(ad|campaign|fbclid|pk|tm|wt)_([^&]+)/, "", s); gsub(/\?&/, "?", s); gsub(/[\?&]+$/, "", s); |