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 setup 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: 1

Views: 523

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: 1

Related Questions