I have a website where each user registers as subdomain (username.domain.com). I'm tracking all subdomains with the folllowing code:
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXX-X']);
_gaq.push(['_setDomainName', '.domain.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
I want to show custom statistics for each user using the GA API. Since i'm using only one GA account for tracking all "subdomains", how can i filter the data in order to show only the data for each user (subdomain)?
Thanks.