Browser is still feeding cookies to cookieless domain

1 view
Skip to first unread message

Civilized Group

unread,
Jan 24, 2010, 2:27:04 AM1/24/10
to page-speed-discuss
I setup an entirely new domain name (static.domain2.com) to serve up
the static files for www.domain.com, but my request headers still
contain Google Analytics cookie code! How can this be?

Bruno

unread,
Jan 25, 2010, 7:45:09 AM1/25/10
to page-speed-discuss
If you're using the asynchronous loading, add this line to your code :

_gaq.push(["_setDomainName", "none"]);

Then analytics cookies will not be sent.
For the classic loading, I think it's something like :

pageTracker._setDomainName("www.domain.com");

Remember to empty your browser's cookies before two page speed tests!


On Jan 24, 8:27 am, Civilized Group <supp...@civilizedgroup.com>
wrote:


> I setup an entirely new domain name (static.domain2.com) to serve up

> the static files forwww.domain.com, but my request headers still

Reply all
Reply to author
Forward
0 new messages