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

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:

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

 

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

ga('secondTracker.send', 'pageview');
</script>
.

Please let me know what changes I need to do?

 

Thanks

Deepak 

 

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
http://cutroni.com/blog/2007/06/26/understanding-the-google-analytics-terms-of-service/
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.

Thanks,

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 http://googlepublicpolicy.blogspot.com/2008/02/are-ip-addresses-personal.html - 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