Skip to content

Commit

Permalink
updated: more tracking params, publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiIgna committed Sep 12, 2024
1 parent 927d4b3 commit bca6b11
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 15 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Publish package
- name: Publish package to npmjs.com
run: npm publish

- name: Publish package to jsr.io
run: npx jsr publish
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@layered/superurl",
"version": "1.2.5",
"version": "1.2.6",
"exports": "./src/index.ts"
}

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@layered/superurl",
"version": "1.2.5",
"version": "1.2.6",
"description": "URL helpers: validate, sanitize & extract info",
"type": "module",
"keywords": [
Expand Down
21 changes: 11 additions & 10 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const trackingParams: string[] = [
'__snid3__',
'adgroupid',
'ceid',
'cmdf',
'EXP',
'fbclid', // from Meta
'fp_sid',
Expand All @@ -44,19 +45,26 @@ const trackingParams: string[] = [
'referring_guid',
'ref_',
'fref',
'pnref',
'pq-origsite',
'sourcetype',
'link_ref',
'nd', // from Spotify
'origin',
'originalSubdomain', // from LinkedIn
'original_referer',
'pnref',
'pq-origsite',
'ppid',
'pp',
'pli',
'share_app_id',
'share_author_id',
'share_link_id',
'share_id', // from Snapchat
'share_from',
'si', // from Spotify/YouTube
'sid', // from Snapchat
'source',
'sourcetype',
'src',
'utm_campaign',
'utm_content',
'utm_medium',
Expand All @@ -67,15 +75,8 @@ const trackingParams: string[] = [
'utm_unptid',
'unptid',
'ucbcb',
'ppid',
'pp',
'pli',
'source',
'src',
'usp',
'trk',
'si', // from Spotify/YouTube
'nd', // from Spotify
'via',
]
const domainParams: {[key: string]: string[]} = {
Expand Down

0 comments on commit bca6b11

Please sign in to comment.