Skip to content

Instantly share code, notes, and snippets.

@cramforce
Last active July 26, 2025 19:14
Show Gist options
  • Save cramforce/4e959ed42b5b2babe0410dbccf4605b6 to your computer and use it in GitHub Desktop.
Save cramforce/4e959ed42b5b2babe0410dbccf4605b6 to your computer and use it in GitHub Desktop.
vercel.json that strips UTM params
{
"$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