Browse Source

feat(urlcleaner): add more Google Analytics parameters

jvoisin 1 year ago
parent
commit
117d711d7d
1 changed files with 9 additions and 0 deletions
  1. 9 0
      internal/reader/urlcleaner/urlcleaner.go

+ 9 - 0
internal/reader/urlcleaner/urlcleaner.go

@@ -14,6 +14,7 @@ import (
 // https://firefox.settings.services.mozilla.com/v1/buckets/main/collections/query-stripping/records
 // https://github.com/Smile4ever/Neat-URL/blob/master/data/default-params-by-category.json
 // https://github.com/brave/brave-core/blob/master/components/query_filter/utils.cc
+// https://developers.google.com/analytics/devguides/collection/ga4/reference/config
 var trackingParams = map[string]bool{
 	// Facebook Click Identifiers
 	"fbclid":          true,
@@ -31,6 +32,14 @@ var trackingParams = map[string]bool{
 	"wbraid": true,
 	"gclsrc": true,
 
+	// Google Analytics
+	"campaign_id":      true,
+	"campaign_medium":  true,
+	"campaign_name":    true,
+	"campaign_source":  true,
+	"campaign_term":    true,
+	"campaign_content": true,
+
 	// Yandex Click Identifiers
 	"yclid":  true,
 	"ysclid": true,