Skip to content

Commit 554785d

Browse files
authored
Strip 'vgo_ee' (ActiveCampaign) (#67)
1 parent 36fcdc5 commit 554785d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ The following query string parameters are stripped:
3030
- `utm_name`
3131
- `utm_social`
3232
- `utm_social-type`
33+
- [ActiveCampaign](https://www.activecampaign.com/)
34+
- `vgo_ee`
3335
- [HubSpot](https://www.hubspot.com/)
3436
- `_hsenc`
3537
- `_hsmi`

background.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
* parameter. We'll search the query string portion of the URL for this
44
* pattern to determine if there's any stripping work to do.
55
*/
6-
const searchPattern = new RegExp('utm_|stm_|clid|_hs|icid|igshid|mc_|mkt_tok|yclid|_openstat|wicked|otc|oly_|rb_clickid|soc_|cvid|oicd', 'i');
6+
const searchPattern = new RegExp('utm_|stm_|clid|_hs|icid|igshid|mc_|mkt_tok|yclid|_openstat|wicked|otc|oly_|rb_clickid|soc_|cvid|oicd|vgo_ee', 'i');
77

88
/*
99
* Pattern matching the query string parameters (key=value) that will be
1010
* stripped from the final URL.
1111
*/
1212
const replacePattern = new RegExp(
1313
'([?&]' +
14-
'(icid|mkt_tok|(g|fb)clid|igshid|_hs(enc|mi)|mc_[ce]id|(utm|stm)_(id|source|medium|term|campaign|content|cid|internal|reader|referrer|name|social|social-type|klaviyo_id)|rb_clickid|yclid|_openstat|wickedid|otc|oly_(anon|enc)_id|soc_(src|trk)|cvid|oicd)' +
14+
'(icid|mkt_tok|(g|fb)clid|igshid|_hs(enc|mi)|mc_[ce]id|(utm|stm)_(id|source|medium|term|campaign|content|cid|internal|reader|referrer|name|social|social-type|klaviyo_id)|rb_clickid|yclid|_openstat|wickedid|otc|oly_(anon|enc)_id|soc_(src|trk)|cvid|oicd|vgo_ee)' +
1515
'=[^&#]*)',
1616
'ig');
1717

0 commit comments

Comments
 (0)