From 638c24819f4147196d7cc39868455fc29bb28fc9 Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Sun, 9 Sep 2018 19:13:16 +0200 Subject: [PATCH] Added another tracking parameter to removeTracking. --- removetracking.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/removetracking.go b/removetracking.go index 157f07e..f37d4ee 100644 --- a/removetracking.go +++ b/removetracking.go @@ -34,5 +34,9 @@ func removeTracking(input string) (output string, err error) { // used for tracking the referer by some feeds. output = strings.Split(output, "?ref=")[0] + // Remove the URL part starting with "?pk_", which is + // used for tracking purposes. + output = strings.Split(output, "?pk_")[0] + return output, err }