Reputation: 49
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
Reputation: 325
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