Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can We Track IP Adress of Any Visiter through Google Analytics

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi List[],

Can Any one tell me , how to Track IP Adress through Google analytics.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GA itself no longer provides IP addresses, but you can add them using the user-defined variable created by calling "pageTracker._setVar" if your pages are created dynamically on the server. Here's a little writeup on using setVar. Instead of the "customers" or "Needs help" examples used in the article, you'd have to have dynamic server code (in PHP, JSP, ASP, or whatever) that inserts the IP address of the incoming request. Note that you can only use a single setVar value per visitor, so if you want to use it for something else then you're out of luck (although "trackEvent" could be used in that case).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic