Skip to content

Instantly share code, notes, and snippets.

@technocake
Created September 8, 2019 20:30
Show Gist options
  • Save technocake/5dee869c076d97a28fe9f1f0743a035c to your computer and use it in GitHub Desktop.
Save technocake/5dee869c076d97a28fe9f1f0743a035c to your computer and use it in GitHub Desktop.
NGINX - Remove fbclid from all urls
location / {
...
# Disable fbclid tracking on all urls
if ($query_string ~ "^(.*)fbclid=(.*)$") {
rewrite ^(.*)$ $uri? permanent;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment