Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip 'vgo_ee' (ActiveCampaign) #67

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading