Skip to content

Commit

Permalink
Add fbclid to the list of parameters to be removed from URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Oct 22, 2018
1 parent 1d6ca81 commit c59b06b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ sub vcl_recv {

# Some generic URL manipulation, useful for all templates that follow
# First remove URL parameters used to track effectiveness of online marketing campaigns
if (req.url ~ "(\?|&)(utm_[a-z]+|gclid|cx|ie|cof|siteurl)=") {
set req.url = regsuball(req.url, "(utm_[a-z]+|gclid|cx|ie|cof|siteurl)=[-_A-z0-9+()%.]+&?", "");
if (req.url ~ "(\?|&)(utm_[a-z]+|gclid|cx|ie|cof|siteurl|fbclid)=") {
set req.url = regsuball(req.url, "(utm_[a-z]+|gclid|cx|ie|cof|siteurl|fbclid)=[-_A-z0-9+()%.]+&?", "");
set req.url = regsub(req.url, "[?|&]+$", "");
}

Expand Down

0 comments on commit c59b06b

Please sign in to comment.