Skip to content

Commit

Permalink
Strip utm_klaviyo_id (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
jparise authored Nov 28, 2023
1 parent b4e23a6 commit 476d945
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ The following query string parameters are stripped:
- `_hsmi`
- Instagram
- `igshid`
- [Klaviyo](https://www.klaviyo.com/)
- `utm_klaviyo_id`
- Mailchimp
- `mc_cid`
- `mc_eid`
Expand Down
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const searchPattern = new RegExp('utm_|stm_|clid|_hs|icid|igshid|mc_|mkt_tok|ycl
*/
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|reader|referrer|name|social|social-type)|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|reader|referrer|name|social|social-type|klaviyo_id)|rb_clickid|yclid|_openstat|wickedid|otc|oly_(anon|enc)_id|soc_(src|trk)|cvid|oicd)' +
'=[^&#]*)',
'ig');

Expand Down

0 comments on commit 476d945

Please sign in to comment.