2.8K members online now
Understand information in your reports and troubleshoot reporting issues such as self-referrals, (not set) data, and inaccurate information
Guide Me

IP Tracking in Analytics

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Can someone help me with tracking IP data in analytics.


I am using following code and custom dimension with User scope:

(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),


ga('create', 'UA-xxxxxxxx-2', 'auto', {'name':'secondTracker'});
ga(‘secondTracker.set’, ‘dimension1’, '');

ga('secondTracker.send', 'pageview');

Please let me know what changes I need to do?





2 Expert replyverified_user

Re: IP Tracking in Analytics

Top Contributor
# 2
Top Contributor
Hi :-)
Tracking IP data in analytics to the best of my knowledge goes against the GA TOS.
There is a good post here by Googler, Justin Cutroni about the TOS
Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here

Re: IP Tracking in Analytics

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Maybe you are right. But I did not find anywhere explicitly mentioned in
Google TOS. In fact, two months back, I called analytics representative and
asked the same. They said that there is no such policy, which forbid from
tracking IP data.


Re: IP Tracking in Analytics

[ Edited ]
Rising Star
# 4
Rising Star

I am not a Google employee, so this is simply my interpretation.

Google does not explicitly ban IP Address collection - the current policy Google has published is that an IP address by itself is not PII (see - Are IP addresses personal? | Google Public Policy Blog)

In fact, Google tracks IP addresses itself. All of the quotes about PII seem to be quoting others and the IP address restriction slipped in like a phrase in the kids game of 'telephone'

But... why risk it a change in interpretation?  Google does not provide an exhaustive list but depends on customers to apply their examples in the broadest and most proactive terms possible.  It could easily be argued that IP Address + Device + Time of Day is PII and then you're out of luck.

Much better to use User ID capabilities and track this data along with other customer data in your own repository. I can't imagine what use it could actually be as a custom dimension.

Director of Marketing | Nehmedia | Partner Profile