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

Stefan Neagu 02-10-2009

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., 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.

Related topics: Google Analytics, IP Address, Web Analytics.

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Mohit Teotia
    October 30, 2018 at 8:13 am

    there is not an option in google analytics to track the IP address

  2. Onjeniko
    May 30, 2018 at 7:54 am

    I never knew we have tools such as as google analytics to use when examining statistics from your site! thanks for sharing

  3. Jack
    October 12, 2017 at 10:23 am

  4. Kelly
    April 10, 2016 at 3:54 pm

    Yes Joe you will need outside sources to get users and companies IP and data internet is full of those sources....

    visit and register your business

  5. aj
    October 28, 2009 at 11:14 am


    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

  6. Joe
    October 5, 2009 at 9:27 am

    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. // or 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.

    Am I missing something? Or is it the article?