P.patel
P.patel

Reputation: 49

I want to get city, country, state from Google Analytics object (GA object)

I want to get city, country and state from Google Analytic object only. I have set up client id and referrer.

ga(function(tracker) {  
  var client_id = tracker.get('clientId');  
  var referrer = tracker.get('referrer');

  console.log(client_id);
  console.log(referrer);
}

How can I get this from GA object?

Upvotes: 0

Views: 117

Answers (1)

Michael M
Michael M

Reputation: 325

You can't.

Your client's IP is sent into GA, and they populate their reports with the best City/State/Country information they can determine for that IP address.

Upvotes: 2

Related Questions