Is it possible to use Google Analytics on a web farm so that it collects stats on what happened on each server in the farm? eg:

  • Instead of visits, show visits per server (helps us check the load balancer is working)
  • Instead of site speed, show site speed per server (helps us see if any box is unexpectedly slow)
  • And so on

I would create a google account for each server. that way I would keep track of each server usage.

| improve this answer | |
  • This seems like the logical solution - you may not have to create a separate Google account though (just call each server a website under the one account, that way you can view all their stats without having to change logins) – voretaq7 Nov 14 '12 at 1:26
  • Yeah I could create new profiles in GA. That would allow for separate reporting by server, but how would I get the overview then? Total visits etc – JK01 Nov 14 '12 at 1:29

If I had 50 farms, I could create 50 accounts... or more likely I'm not going to want to maintain all those accounts and would simply want one account to manage. I believe this makes more sense, given you can simply filter your queries/reports using a secondary sorting dimension. Simply set your secondary dimension to be Content>Host and then by using an advanced filter or custom segments, you can see stats for each server. This assumes each has a unique url or IP.

If all farms are redirected by a load balancer, you might need to set a custom variable to be your farm instance, in which case this would become your secondary dimension.

Not ideal, but preferable to maintaining multiple accounts. The downside is that when you want to do some analysis on a secondary dimension, you lose that ability.

| improve this answer | |
  • "The downside is that when you want to do some analysis on a secondary dimension, you lose that ability." - You don't lose any capabilities if you use advanced segments for custom variable values. – danlefree Nov 14 '12 at 7:27
  • Good point. I had the first method in my head when finishing my answer. – Dallas Nov 15 '12 at 1:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.