Get your CodeRanch badge!*
The moose likes Other Open Source Projects and the fly likes Can We Track IP Adress of Any Visiter through Google Analytics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Can We Track IP Adress of Any Visiter through Google Analytics" Watch "Can We Track IP Adress of Any Visiter through Google Analytics" New topic
Author

Can We Track IP Adress of Any Visiter through Google Analytics

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
Hi List[],

Can Any one tell me , how to Track IP Adress through Google analytics.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
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).


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can We Track IP Adress of Any Visiter through Google Analytics
 
Similar Threads
Can i get the client IP adress in my servlet?
Building your own web application statistics
How to restrict access through IP Adress
Web Analytics tool for Liferay portals
IP address and location of client