summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-10-12 20:10:44 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-10-12 20:13:46 +0200
commit74df6f66ab2b6cf1857658151f9076c585911b7f (patch)
treede5d457739d93372b9983e06054a817a4cbed8f0 /README
parent33c50db302957bca2a850ac8d0b960d05ee0520e (diff)
README: filter example: strip Facebook fbclid parameter
Diffstat (limited to 'README')
-rw-r--r--README4
1 files changed, 2 insertions, 2 deletions
diff --git a/README b/README
index d026195..693af00 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|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);