Google Analytics Domain with and without WWW

If I store a cookie or set a session associated with http://mydomain.com , the same cookie or session will not be selected on http://www.mydomain.com . I put http://mydomain.com as my default url.

Will Google Analytics track both www and non-www domains as one in this case?

+4
source share
1 answer

If you set your own cookie with the domain "mydomain.com", it will be visible only in this domain (without subdomains). If you set your own cookie as ".mydomain.com" (prefixed with a dot), then it will be visible to "mydomain.com" and any subdomain of mydomain.com.

GA cookie , , "www.mydomain.com", "www.mydomain.com", "mydomain.com" - . , , , GA "mydomain.com" , . , , cookie . , GA .

.

+9

All Articles