View Your Website’s Visitors’ IP Address & Keep Statistics

Screen-shot-2009-09-27-at-17.20.32 There’s no debate whether or not our online activities are tracked, they most surely are. It’s not even a single party that keeps the score; your ISP, website owners, advertisers and NSA know the reason you switched to Private Browsing Mode yesterday at 22:12. If the cool kids are doing it, why shouldn’t you? Here’s how you can get to ‘know’ your website’s visitors IP address.

google analytics visitor ip


The first thing you want to do is go about creating an account over at Google Analytics. Why would I want to do that, you ask? Well, in my own experience, the service provides a tremendous amount of data, has a great user interface, is easy to install on any website, and, more importantly, is completely free of charge. It’s undoubtedly the easiest, cheapest and fast way of getting your visitors’ information, including their IP address or hostname.

If you already use any of the Google services, you can easily sign in with your existing credentials. The process of setting up your website with Google couldn’t be easier. You will be prompted to create a profile. A profile is basically a metaphor for a folder, where you can keep track of various aspects of your websites’ traffic. Each different domain will have its own separate profile. Select ‘Add Profile for a new domain‘ and enter your domain’s address and timezone.

The next page will generate a bit of code that you’ll have to insert in the header or footer of your website’s template. You have to do this because you  want to keep track of visitors across your website, not just the homepage. This way, no matter where the user navigates to (eg. mysite.com/secondpage), you will know about the total time spent, the pageview/unique visitor ratio and exit funnels.

google analytics visitor ip

How you add the code to your website varies dramatically – and requires the knowledge to manually access and edit your theme files. You probably set your own website up, so you must know how to do this. If you don’t know how, don’t panic, and instead search Google for ‘[service type] + edit theme OR Google Analytics‘. For example, ‘WordPress edit theme Google Analytics‘. There are plenty of guides out there that will show you how to add this bit of code.

In the latest version of the self-hosted WordPress, I only need to click on ‘Appearance‘ in the sidebar, ‘Editor‘ and choose from the right side list ‘footer.php‘. As a golden rule, insert the code before the last ‘</body></html>’ tags. They’ve also got a lot of support material over at the help page, which you might want to check out if in doubt.

visitor ip address

Twenty-four hours later and you’ve got the first taste of website statistics. Be prepared to spend the rest of the evening looking at various graphs of source locations, connection speed, ISP, browser capabilities, operating systems, browsers, time on site and more. After that, the only problem that could arise is that you’ll wish you could install a tracking code in your girlfriend, in order to be plot the ‘visitor loyalty’ chart.

visitor ip address

If you want to view individual IP addresses of your website’s visitors you need to click on Visitors>Network Properties>Hostnames, from the right sidebar, as illustrated in the screenshot above. There you will see a list of IP addresses and how many times each has visited the website. This can prove useful if your site is being attacked (defaced, DDOS-ed, etc.), as you can determine who your attacker is, or at least his proxy.

More views and information is accessible through the sidebar on the right: Visitors, Traffic Sources, Content and Goals. They’re pretty much self explanatory. The Visitors tab will contain information about – you’ve guessed it, the people who accessed your site. Traffic sources will identify who sent you traffic, be it a search engine, a referral or just organic. The Content tab will dutifully tell you how each page is doing when it comes to attracting eyeballs. Finally, Goals is used by e-commerce folks and companies to measure conversions, a fancy word for a sell.

You should definitely spare a minute to check out the quite extensive page of articles about blogging tools.

Tagged:

Stefan Neagu

Back in 2007 I started a tech blog on Google's Blogspot platform. After writing a few articles that got popular and generated a significant amount of traffic, I focused on improving my writing and researching topics the were popular with IT people. I found the work rewarding, as I could stay on top of the the latest tech while earning a living. I contributed to a few websites before finally starting my own self hosted blog. The lack of significant advertising revenue meant I had to give up my freedom, at least partially, and join a monolith: MakeUseOf. Working for MakeUseOf helped enhance my skills as well as develop relationships with people in the tech industry. More information can be found at the Tux Geek , LinkedIn and ClaimID.

Similar Stuff

The comments were closed because the article is more than 90 days old.

If you have any questions related to stuff mentioned in the article or need help with any computer issue, just ask it on MakeUseOf Answers.

  • Joe

    It was my understanding that the “hostname” field in Google Analytics refers to the domain portion of the URL that was used to reach your site (e.g. http://www.makeuseof.com or mobile.makeuseof.com). When I go to the Visitors>Network Properties>Hostnames section of the report, all I see are variations of the domain name of the website.

    Also, this help article from Google specifically says that they do not provide visitor IP addresses in any way due to privacy concerns.
    http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=86214

    Am I missing something? Or is it the article?

  • aj

    @Joe

    I believe it shows where they came from. I visited my site through some proxies to check if it was working and those proxies show up as their domain. The other hits are variations of my website domain(with/without www.). Those would be direct hits with no ‘middle man’. If you want to track individual ip’s you need to use another service like statcounter.com.