Skip to content

Commit

Permalink
Strip 'utm_internal'
Browse files Browse the repository at this point in the history
Closes #65
  • Loading branch information
jparise committed Oct 14, 2024
1 parent b0faafd commit d05004c
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 @@ -23,6 +23,8 @@ The following query string parameters are stripped:
- `utm_campaign`
- `utm_content`
- `utm_cid`
- `utm_internal`
- `utm_klaviyo_id`
- `utm_reader`
- `utm_referrer`
- `utm_name`
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|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)' +
'=[^&#]*)',
'ig');

Expand Down

0 comments on commit d05004c

Please sign in to comment.