Update list of tracking parameters

The browsers Firefox and Brave also implement URL parameter stripping.
The list of tracking parameters in Fedilab is updated to match the combined list of these implementations/browsers.
This commit is contained in:
Andreas Kuchenbecker 2025-08-11 19:32:57 +02:00 committed by uRDAlaqjNb
parent 6b168c302a
commit d73a8a8325

View file

@ -397,34 +397,85 @@ public class Helper {
public static final int NOTIFICATION_USER_NOTIF = 411; public static final int NOTIFICATION_USER_NOTIF = 411;
public static final int NOTIFICATION_THEMING = 412; public static final int NOTIFICATION_THEMING = 412;
/* /*
* List from ClearUrls * Sources for the list of tracking parameters:
* https://gitlab.com/KevinRoebert/ClearUrls/blob/master/data/data.min.json#L106 * - Firefox: https://firefox.settings.services.mozilla.com/v1/buckets/main/collections/query-stripping/records
* - Brave: https://github.com/brave/brave-core/blob/master/components/query_filter/utils.cc
*/ */
private static final String[] UTM_PARAMS = { private static final String[] UTM_PARAMS = {
"utm_\\w+", "utm_\\w+",
"ga_source", "ref_\\w+",
"ga_medium", "__hsfp",
"ga_term", "__hssc",
"ga_content", "__hstc",
"ga_campaign", "__s",
"ga_place", "_bhlid",
"yclid", "_branch_match_id",
"_branch_referrer",
"_gl",
"_hsenc",
"_kx",
"_openstat", "_openstat",
"at_recipient_id",
"at_recipient_list",
"bbeml",
"bsft_clkid",
"bsft_uid",
"ck_subscriber_id",
"dclid",
"et_rid",
"fb_action_ids", "fb_action_ids",
"fb_action_types", "fb_comment_id",
"fb_source",
"fb_ref",
"fbclid", "fbclid",
"action_object_map", "gbraid",
"action_type_map", "gclid",
"action_ref_map", "guce_referrer",
"gs_l", "guce_referrer_sig",
"h_sid",
"h_slt",
"hsCtaTracking",
"hsctatracking",
"igsh",
"igshid",
"irclickid",
"mc_eid",
"mkt_tok", "mkt_tok",
"hmb_campaign", "ml_subscriber",
"hmb_medium", "ml_subscriber_hash",
"hmb_source", "msclkid",
"[\\?|&]ref[\\_]?" "mtm_cid",
"oft_c",
"oft_ck",
"oft_d",
"oft_id",
"oft_ids",
"oft_k",
"oft_lk",
"oft_sk",
"oly_anon_id",
"oly_enc_id",
"pk_cid",
"rb_clickid",
"s_cid",
"sc_customer",
"sc_eh",
"sc_uid",
"si",
"sms_click",
"sms_source",
"sms_uph",
"srsltid",
"ss_email_id",
"ttclid",
"twclid",
"unicorn_click_id",
"vero_conv",
"vero_id",
"vgo_ee",
"wbraid",
"wickedid",
"yclid",
"ymclid",
"ysclid"
}; };
public static int counter = 1; public static int counter = 1;
private static int notificationId = 1; private static int notificationId = 1;