Can We Track IP Adress of Any Visiter through Google Analytics
posted 7 years ago
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).