i have 2 domains:
- www.example.com
- www.aboutexample.com
and on nginx, i have set a proxy to do:
www.example.com -> server:81
www.aboutexample.com -> SERVER:81/about
so,
www.aboutexample.com/some/things == www.example.com/about/some/things
on my pages i have analytics set like this:
_gaq.push(['_setAccount', ANALYTICS_ID],['_trackPageview']);
when you check the main domain
www.example.com/about/some/things
i get /about/some/things
bet when you check the about domain:
www.aboutexample.com/some/things
i get /some/things
i have fixed this by adding 2 analytics accounts, one for the example.com
and other to aboutexample.com
, and the server toggles between them depending on the domain, but is there any way to join them in one main(example.com) analytics accounts and add the aboutexample.com/*
as example.com/about/*
?