Mobile app version of vmapp.org
Login or Join
Goswami781

: Best stats tool for cross-domain tracking We build a webapp that allows users to run the app under their own subdomain. So we run the app under search.domainX.com, search.domainY.com and so

@Goswami781

Posted in: #Analytics #Statistics #Tracking

We build a webapp that allows users to run the app under their own subdomain. So we run the app under search.domainX.com, search.domainY.com and so on. They each have their own Google Analytics to track individual stats. But we want to know what general traffic for all clients of our app. So we want to know stuff like "among all our clients we had x number of views." What is the best way tool to track that sort of thing. We prefer a snippet based solution similar to Google Analytics if possible.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Goswami781

3 Comments

Sorted by latest first Latest Oldest Best

 

@Nickens628

You can send tracking data to multiple Analytics accounts using the asynchronous tracking API to send multiple commands. For example:

<script type="text/javascript">

var _gaq = _gaq || [];

//Send data to the client's Google Analytics account
_gaq.push(['_setAccount', 'UA-12345-1']);
_gaq.push(['_trackPageview']);

//Send data to your Google Analytics account
_gaq.push(['b._setAccount', 'UA-12345-2']);
_gaq.push(['b._setDomainName', 'none']);
_gaq.push(['b._setAllowHash', 'false']);
_gaq.push(['b._setAllowLinker', true]);
_gaq.push(['b._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);
})();

</script>


This will send data to their Analytics account (UA-12345-1) for visits to that domain only, and it will send data to your Analytics account (UA-12345-2) for all sites using your app, so long as you include the code on every installation.

The best way to implement this would be to build Google Analytics into your app, and prompt users for their 'UA-12345-1' Analytics account code. That way, they won't have to add Analytics code themselves, which might risk messing up your setup.

You should also mention to them that you're tracking their usage of the app in order to improve your product, either directly or in your terms and conditions.

10% popularity Vote Up Vote Down


 

@Welton855

Piwik is an open source, user friendly web analytics free solution.

10% popularity Vote Up Vote Down


 

@Goswami781

I assume that you have access to the servers behind the search.*.com domains. In that case you could just combine the log files for each domain into one big one. Then the question becomes "which is the best tool for getting stats out of log files?", which is a separate question!

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme