You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Jan-Frode Myklebust <ja...@tanso.net> on 2013/03/15 22:14:42 UTC
Drop Google Analytics cookies ?
Is there any way in ATS to drop or ignore the Google Analytics cookies
(these are named "__utm?"), so that these doesn't block cache-ability
of content ?
-jf
Re: Drop Google Analytics cookies ?
Posted by Jan-Frode Myklebust <ja...@tanso.net>.
On Fri, Mar 15, 2013 at 05:16:30PM -0400, Mark Harrison wrote:
> You can use the header_filter plugin to filter out cookies:
> http://trafficserver.apache.org/docs/trunk/admin/plugins/header_filter/index.en.html
Great, thanks! I will try that plugin.
-jf
Re: Drop Google Analytics cookies ?
Posted by Leif Hedstrom <zw...@apache.org>.
On 3/16/13 6:36 AM, Jan-Frode Myklebust wrote:
> On Fri, Mar 15, 2013 at 05:16:30PM -0400, Mark Harrison wrote:
>> You can use the header_filter plugin to filter out cookies:
>> http://trafficserver.apache.org/docs/trunk/admin/plugins/header_filter/index.en.html
> I now tried this, but don't see how I can filter out individual cookies.
>
> If I use the filter:
>
> [READ_REQUEST_HDR]
> Cookie /__utm.=/
>
> it seems to filter out *all* cookies when I have a cookie that matches
> the filter. Is there something I'm missing, or is the supposed to be
> an all or nothing solution?
>
Yeah, it's not smart enough to filter out within the header, so the entire
header line that matches that string is nuked.
-- Leif
Re: Drop Google Analytics cookies ?
Posted by Jan-Frode Myklebust <ja...@tanso.net>.
On Fri, Mar 15, 2013 at 05:16:30PM -0400, Mark Harrison wrote:
> You can use the header_filter plugin to filter out cookies:
> http://trafficserver.apache.org/docs/trunk/admin/plugins/header_filter/index.en.html
I now tried this, but don't see how I can filter out individual cookies.
If I use the filter:
[READ_REQUEST_HDR]
Cookie /__utm.=/
it seems to filter out *all* cookies when I have a cookie that matches
the filter. Is there something I'm missing, or is the supposed to be
an all or nothing solution?
-jf
Re: Drop Google Analytics cookies ?
Posted by Mark Harrison <ma...@omniti.com>.
You can use the header_filter plugin to filter out cookies:
http://trafficserver.apache.org/docs/trunk/admin/plugins/header_filter/index.en.html
On Fri, Mar 15, 2013 at 5:14 PM, Jan-Frode Myklebust <ja...@tanso.net> wrote:
> Is there any way in ATS to drop or ignore the Google Analytics cookies
> (these are named "__utm?"), so that these doesn't block cache-ability
> of content ?
>
>
>
> -jf
--
Mark Harrison
Lead Site Reliability Engineer
OmniTI