Browse Source

ajout d'un nouveau cookie pour GA

master
Gregory Colpart 6 months ago
parent
commit
91951b3039
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      HowtoVarnish.md

+ 1
- 0
HowtoVarnish.md View File

@@ -380,6 +380,7 @@ sub vcl_recv {
set req.http.Cookie = regsuball(req.http.Cookie, "_ga=[^;]+(; )?", ""); # Google Analytics
set req.http.Cookie = regsuball(req.http.Cookie, "_gaq=[^;]+(; )?", ""); # Google Analytics
set req.http.Cookie = regsuball(req.http.Cookie, "__utm[^=]*=[^;]+(; )?", ""); # Google Analytics
set req.http.Cookie = regsuball(req.http.Cookie, "_gid[^=]*=[^;]+(; )?", ""); # Google Analytics

if (req.http.cookie ~ "^ *$") {
unset req.http.cookie;


Loading…
Cancel
Save