1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

feat(urlcleaner): add more Google Analytics parameters

This commit is contained in:
jvoisin 2025-02-20 17:18:39 +01:00 committed by Frédéric Guillot
parent 2f71804ff4
commit 117d711d7d

View file

@ -14,6 +14,7 @@ import (
// https://firefox.settings.services.mozilla.com/v1/buckets/main/collections/query-stripping/records // 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/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://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{ var trackingParams = map[string]bool{
// Facebook Click Identifiers // Facebook Click Identifiers
"fbclid": true, "fbclid": true,
@ -31,6 +32,14 @@ var trackingParams = map[string]bool{
"wbraid": true, "wbraid": true,
"gclsrc": 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 // Yandex Click Identifiers
"yclid": true, "yclid": true,
"ysclid": true, "ysclid": true,