To optimize my site i have set up a static subdomain for content such as images, css and javascript. How do i stop the google analytics tracking cookie from being sent to my static subdomain, but still to both example.com and http://www.example.com?
Have already looked through some of the documentation with no luck
You can’t have a cookie that gets sent to
www.example.comandexample.combut notothersubdomain.example.com.You can in theory have a cookie that gets sent to
example.combut notsubdomain.example.com, but it doesn’t work in IE.This is why you should not use a no-www
example.comaddress when you are planning on using subdomains with their own security context. It’s best to have only one ofwww.example.comandexample.comas the ‘proper’ URL anyway. So set up a redirect forexample.comto go towww.example.com, and cookies won’t be shared unless you deliberately setdomain=.example.comon them.