Skip to content

Commit 058825c

Browse files
committed
Update providers
1 parent d5f7455 commit 058825c

3 files changed

Lines changed: 275 additions & 77 deletions

File tree

app/src/main/java/com/wstxda/clippy/cleaner/providers/ShortenerRegexProvider.kt

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,46 @@ package com.wstxda.clippy.cleaner.providers
22

33
object ShortenerRegexProvider {
44
val shortenerRegexes = listOf(
5+
Regex("(ad|advertising|ads|campaign)[-_]?\\w+", RegexOption.IGNORE_CASE),
56
Regex("ad[_\\-]?id", RegexOption.IGNORE_CASE),
6-
Regex("affiliate[_\\-]?id", RegexOption.IGNORE_CASE),
77
Regex("aff\\w+", RegexOption.IGNORE_CASE),
8-
Regex("(ad|advertising|ads|campaign)[-_]?\\w+", RegexOption.IGNORE_CASE),
9-
Regex("click_id", RegexOption.IGNORE_CASE),
8+
Regex("affiliate[_\\-]?id", RegexOption.IGNORE_CASE),
9+
Regex("campid", RegexOption.IGNORE_CASE),
10+
Regex("campaignid", RegexOption.IGNORE_CASE),
1011
Regex("(clid|irclickid|click_id|clickid)", RegexOption.IGNORE_CASE),
1112
Regex("cookie[_\\-]?id", RegexOption.IGNORE_CASE),
1213
Regex("device[_\\-]?id", RegexOption.IGNORE_CASE),
13-
Regex("fbclid", RegexOption.IGNORE_CASE),
14+
Regex("dclid", RegexOption.IGNORE_CASE),
15+
Regex("emci", RegexOption.IGNORE_CASE),
16+
Regex("emdi", RegexOption.IGNORE_CASE),
1417
Regex("feature", RegexOption.IGNORE_CASE),
1518
Regex("full_url", RegexOption.IGNORE_CASE),
19+
Regex("fbclid", RegexOption.IGNORE_CASE),
20+
Regex("gbraid", RegexOption.IGNORE_CASE),
1621
Regex("gclid", RegexOption.IGNORE_CASE),
1722
Regex("hash[_\\-]?id", RegexOption.IGNORE_CASE),
23+
Regex("hootPostID", RegexOption.IGNORE_CASE),
1824
Regex("keyword", RegexOption.IGNORE_CASE),
1925
Regex("(lead|session|transaction)[-_]?id", RegexOption.IGNORE_CASE),
26+
Regex("li_fat_id", RegexOption.IGNORE_CASE),
27+
Regex("mibextid", RegexOption.IGNORE_CASE),
28+
Regex("mkevt", RegexOption.IGNORE_CASE),
29+
Regex("mkcid", RegexOption.IGNORE_CASE),
30+
Regex("mkrid", RegexOption.IGNORE_CASE),
2031
Regex("(msclkid|sid)", RegexOption.IGNORE_CASE),
32+
Regex("oly[_\\-]?anon[_\\-]?id", RegexOption.IGNORE_CASE),
33+
Regex("oly[_\\-]?enc[_\\-]?id", RegexOption.IGNORE_CASE),
2134
Regex("ref", RegexOption.IGNORE_CASE),
2235
Regex("referral[_\\-]?code", RegexOption.IGNORE_CASE),
2336
Regex("referrer[_\\-]?id", RegexOption.IGNORE_CASE),
2437
Regex("session[_\\-]?id", RegexOption.IGNORE_CASE),
2538
Regex("source[_\\-]?id", RegexOption.IGNORE_CASE),
39+
Regex("ttclid", RegexOption.IGNORE_CASE),
2640
Regex("tracking_id", RegexOption.IGNORE_CASE),
2741
Regex("trk_\\w+", RegexOption.IGNORE_CASE),
2842
Regex("utm_(adgroup|campaign|content|medium|ref|source|term|term_id)", RegexOption.IGNORE_CASE),
2943
Regex("user_id", RegexOption.IGNORE_CASE),
30-
Regex("visitor_id", RegexOption.IGNORE_CASE)
44+
Regex("visitor_id", RegexOption.IGNORE_CASE),
45+
Regex("vero_id", RegexOption.IGNORE_CASE)
3146
)
3247
}

app/src/main/java/com/wstxda/clippy/cleaner/providers/TrackingParametersProvider.kt

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,61 @@ package com.wstxda.clippy.cleaner.providers
33
object TrackingParametersProvider {
44
fun getTrackingFilterList(): Set<String> {
55
return setOf(
6-
"_hsenc",
7-
"_hsmi",
86
"ad_click_id",
97
"ad_id",
108
"ad_name",
119
"ad_position",
1210
"aff_click_id",
1311
"aff_id",
1412
"aff_source",
13+
"campid",
1514
"campaign",
1615
"campaign_id",
1716
"campaign_medium",
1817
"campaign_name",
1918
"campaign_source",
19+
"campaignid",
20+
"ceid",
2021
"click_ref",
2122
"conversion_id",
2223
"cookie",
24+
"dclid",
2325
"device_id",
2426
"device_type",
25-
"email_id",
27+
"emci",
28+
"emdi",
2629
"event_action",
2730
"event_category",
2831
"event_id",
2932
"event_label",
3033
"external_id",
3134
"fb_event",
3235
"fbclid",
36+
"gbraid",
3337
"gclid",
3438
"group_id",
39+
"hootPostID",
3540
"ip",
3641
"k_click_id",
37-
"matomo_campaign",
38-
"matomo_kwd",
39-
"matomo_medium",
40-
"matomo_source",
42+
"li_fat_id",
4143
"mc_cid",
4244
"mc_eid",
45+
"mibextid",
46+
"mkevt",
4347
"mkt_tok",
48+
"mkcid",
49+
"mkrid",
4450
"msclkid",
51+
"oly_anon_id",
52+
"oly_enc_id",
4553
"partner_id",
54+
"placement",
4655
"piwik_campaign",
4756
"piwik_kwd",
4857
"pk_campaign",
4958
"pk_kwd",
5059
"pk_medium",
5160
"pk_source",
52-
"placement",
5361
"ref_id",
5462
"remarketing_id",
5563
"s1",
@@ -75,6 +83,7 @@ object TrackingParametersProvider {
7583
"tracking_id",
7684
"trk",
7785
"trk_id",
86+
"ttclid",
7887
"user_agent",
7988
"user_id",
8089
"utm_adgroup",
@@ -94,7 +103,10 @@ object TrackingParametersProvider {
94103
"visitor_id",
95104
"wbraid",
96105
"wbclid",
97-
"yclid"
106+
"yclid",
107+
"__s",
108+
"_hsenc",
109+
"_hsmi"
98110
)
99111
}
100-
}
112+
}

0 commit comments

Comments
 (0)