AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

4.5K members online now
4.5K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

Single Domain, Multiple servers. Server IP reporting?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I have multiple servers in the US, with geoDNS sending traffic to each various one based on users location. Single domain. Single tracking code.


I am trying to get some better segment information on which servers are giving end users the slowest responses. I can get an aggregate of the info from the DOM technicals, however this does not tell me which of my server nodes reported.

Re: Single Domain, Multiple servers. Server IP reporting?

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

Do you own the servers?  


The problem is JavaScript (and PHP, etc) run client side, so using strictly GA/GTM is, essentially, impossible to reliably get this information 100% of the time.  If you own the servers, or you essentially have full admin rights, or have a managed server (someone can do the work for you), then you can inject a custom header with some sort of identifier for each server.  This in turn can be read by JS, PHP or what have you which in turn can be passed via the dataLayer in GTM and then on to GA or directly into GA as a custom dimension.