Analytics.js track webapp multiple domains -


we have webapplication hosted on our servers. customers use our predefined (sub)domains , other customers use own domain (paid users).

as want track total usage of established webapps i'd use same tracking code on domains? customers can add own tracking code (i've figured out how this).

so possible this?

sub1.domain.com -> ua-xxxxxxx-1 sub2.domain.com -> ua-xxxxxxx-1 customer3.com -> ua-xxxxxxx-1 customer4.com -> ua-xxxxxxx-1 

here best tutorial it

http://www.ericmobley.net/guide-to-tracking-multiple-subdomains-in-google-analytics/

https://developers.google.com/analytics/devguides/collection/gajs/gatrackingsite#multipledomains

the trick cookies domain property:

ga('create', 'ua-xxxx-y', {'cookiedomain': 'example.com'}); ga('create', 'ua-xxxx-y', auto); 

most of time setup auto. check doc more info cookiedomain.

to tracking across domain , subdomains

as mentioned above, default setup of google analytics designed track content , visitor data single domain, such www.example.com. means if manage both domain , sub-domain, must make modifications tracking code in order share visitor data across both domains.

display subdomains in analytics data using custom filters , set view each subdomain (optional).


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -