NOT LOGGED IN
NOTE: You are commenting as an anonymous guest. Anonymous comments are held in a queue for moderation before they're made public, also all links are set with a
NO FOLLOW flag. If you'd like your comment to be public immediately, please
login or create an account (
no worries, it's free).
Olympus
Married
I'm using Google Analytics on my blog but can't find any reports in my stats showing my visitor's IP's anywhere, is there some way to view them?
Sure is
But I have to throw out the usual disclaimer first: Google considers it an invasion of privacy to see your visitor's IP Addresses. Personally speaking, I don't (much). Webmasters have long been able to view their visitors IP's in their server web logs, 3rd party visitor trackers, and even in most CMS's that they may have installed. ("CMS" for those that may not already know stands for "Content Management System". In other words, those pre-made websites that tens, or even hundreds of thousands of people use, for example, Wordpress, Drupal, Joomla, PHPNuke, and many Forum softwares), although if you're on some free Hosting service, like Blogger or Wordpress.com you may not have natural access to visitor IP addresses.
Sure, if you have someone's IP Address you can get some basic info, like the town/state they may live in and stuff like that, but to get any real personal info out of it you'd need court orders and stuff like that, and if it's come down to that, it's probably a good thing that you have their IP address, maybe the person behind it has been harassing you or some visitor(s) of your site. That said, it's the Big G's policy, so do the following trick at your own risk, there's the potential to lose your Google Analytics account.
On with the Shew
Just paste the following code in place of the code Google Analytics gives you, or if you know what you're doing, use the relevant parts in your own code.
This is basically your standard, run of the mill code you're given by Google Analytics to add to your website page(s), with the exception of the "setCustomVar" line. What this does is creates a custom variable to track for each visit / page load, etc. named "IP" (You can name it whatever you want if you don't like "IP"), and then using PHP echoes the visitors IP address right into the source code which is sent back to Google Analytics along with the rest of the usual visitor information. I've used PHP in this example because it's arguably the most commonly used. If you need a javascript version, just ask and I'll add it as well.
A little extra info:
After that you can view IP Addresses by drilling down in your "Custom Variables" area.
And finally, everyone loves screenshots ...