Skip to content

Commit

Permalink
Strip 'vgo_ee' (ActiveCampaign) (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
jparise authored Dec 19, 2024
1 parent 36fcdc5 commit 554785d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ The following query string parameters are stripped:
- `utm_name`
- `utm_social`
- `utm_social-type`
- [ActiveCampaign](https://www.activecampaign.com/)
- `vgo_ee`
- [HubSpot](https://www.hubspot.com/)
- `_hsenc`
- `_hsmi`
Expand Down
4 changes: 2 additions & 2 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* parameter. We'll search the query string portion of the URL for this
* pattern to determine if there's any stripping work to do.
*/
const searchPattern = new RegExp('utm_|stm_|clid|_hs|icid|igshid|mc_|mkt_tok|yclid|_openstat|wicked|otc|oly_|rb_clickid|soc_|cvid|oicd', 'i');
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');

/*
* Pattern matching the query string parameters (key=value) that will be
* stripped from the final URL.
*/
const replacePattern = new RegExp(
'([?&]' +
'(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)' +
'(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)' +
'=[^&#]*)',
'ig');

Expand Down

0 comments on commit 554785d

Please sign in to comment.