Skip to content

Commit

Permalink
adding remove cookie _gat for Google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
james-portman committed Jun 12, 2015
1 parent 7ec9f21 commit 57bada2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ sub vcl_recv {
# Remove any Google Analytics based cookies
set req.http.Cookie = regsuball(req.http.Cookie, "__utm.=[^;]+(; )?", "");
set req.http.Cookie = regsuball(req.http.Cookie, "_ga=[^;]+(; )?", "");
set req.http.Cookie = regsuball(req.http.Cookie, "_gat=[^;]+(; )?", "");
set req.http.Cookie = regsuball(req.http.Cookie, "utmctr=[^;]+(; )?", "");
set req.http.Cookie = regsuball(req.http.Cookie, "utmcmd.=[^;]+(; )?", "");
set req.http.Cookie = regsuball(req.http.Cookie, "utmccn.=[^;]+(; )?", "");
Expand Down

0 comments on commit 57bada2

Please sign in to comment.