Moze li mi neko pojasniti kako ovo da izvedem, da jedan te isti kod koristim na vise poddomena, ako moze neki primer.
Gledam tamo na google stranama, ali nisam siguran da mi je bas jasno.
Ono sto sam dodao u kodu je ovo sa domenom, srednji red:
_gaq.push(['_setAccount', 'UA-xxxxxx-x']);
_gaq.push(['_setDomainName', 'domen.com']);
_gaq.push(['_trackPageview']);
Ja i koristim isti kod, ali mi je na stranici google analitike izaslo neko crveno obavestenje, pa bi sigurno trebalo napraviti neke izmene:
A significant portion of referral traffic to property domain.com is from the following hostnames, which may be self-referrals:
*subdomain.domain.com*
Self-referrals are referrals from pages within your own domains. Self-referrals can obscure the actual sources of traffic to which conversions and other engagement on your site should be attributed. As a result, your referral metrics could be inaccurate. Further, self-referrals could be indicative of improperly-configured cross-domain tagging. Your users could be generating a session per domain, which would artificially inflate session counts.
There are multiple different Analytics misconfigurations that can cause self-referrals. Users navigating from an untagged page on your site to a tagged page can appear as self-referrals. Users navigating from one subdomain on your site to another subdomain that uses a different cookie domain can appear as self-referrals. If you track multiple domains in one web property, users navigating across multiple domains on your site without linker parameters set up to transfer cookie information properly can appear as self-referrals.
To avoid self-referrals, ensure all pages on your site are correctly tagged with the Analytics tracking code, make sure that cross-domain tracking is configured correctly on all your pages, and check your cookie domain settings in your tracking code to be sure that all subdomains in a domain are using the same cookie domain.