From 74df6f66ab2b6cf1857658151f9076c585911b7f Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 12 Oct 2020 20:10:44 +0200 Subject: README: filter example: strip Facebook fbclid parameter --- README | 4 ++-- 1 file 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); -- cgit v1.2.3