Last active
July 26, 2025 19:14
-
-
Save cramforce/4e959ed42b5b2babe0410dbccf4605b6 to your computer and use it in GitHub Desktop.
vercel.json that strips UTM params
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://openapi.vercel.sh/vercel.json", | |
"routes": [ | |
{ | |
"src": "/(.*)", | |
"transforms": [ | |
{ | |
"type": "request.query", | |
"op": "delete", | |
"target": { | |
"key": "utm_content" | |
} | |
}, | |
{ | |
"type": "request.query", | |
"op": "delete", | |
"target": { | |
"key": "utm_medium" | |
} | |
}, | |
{ | |
"type": "request.query", | |
"op": "delete", | |
"target": { | |
"key": "utm_source" | |
} | |
}, | |
{ | |
"type": "request.query", | |
"op": "delete", | |
"target": { | |
"key": "utm_term" | |
} | |
}, | |
{ | |
"type": "request.query", | |
"op": "delete", | |
"target": { | |
"key": "utm_campaign" | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment