Welcome to part 10 of our tutorial on building a website with Drupal 6.  Previously we covered:

Part 1: Introduction
Part 2: Installing Drupal 6
Part 3: Configuring your Site
Part 4: Playing with Blocks
Part 5: Playing with Modules
Part 6: Playing with Themes
Part 7: Installing Modules and Themes
Part 8: Pathauto, Content, and Content Types
Part 9: Users, Roles, and Permissions

As we go through this tutorials I am building a Drupal resource site called Learn Drupal.

So far our website looks something like this: (you can click on the images for a larger view)


Our website is coming along great, we have some content, we have a contact form, we have a relatively unique look, things are looking good.  But how do we know if we’re getting visitors?  You’ll notice in my screenshot that I have a counter on each piece of content that tells me how many times the content has been viewed.  This is made possible by the settings we chose when we enabled the Statistics module, and is visible to me as the administrator, and you should be able to see it on your website too. But what other specific data does the Statistics module log?  This is part of what we’re going to briefly explore today.

I should start by saying that there won’t be much hands on stuff today, just looking around.  The first place we’re going to look is the Reports section of our administration backend.  So go to Administer -> Reports.


This section is tracking central, where you can see what’s going on on your website.  I recommend looking at your reports regularly as the can alert you to problems that users may be running into when visiting your website, who’s visiting your website, where they’re coming from, etc.

Let’s look through the reports and explore what’s been happening at Learn Drupal, now that it’s been online for a while.  If you’re developing locally, you will only see your activity since you’re the only one who’s accessing your account.  But once your site is live and online, there will be a lot more interesting stuff to see.

Alright, let’s look at Recent Log Entries.  This area shows you simply every event that has occured on your website for the last x days, x being the number we specified when we set up the access log settings (for Learn Drupal it’s 8 weeks)


As you can see, the report shows you what “type” of event occured (whether it was related to a user, to content, a cron run, or an update), the “date and time” of the occurence, the “message” which is basically details about the event, the “user” who triggered the event, and allows you to view the results of the “operation” where applicable.  For example, if I click on “view” for the update event on the screenshot above, I get the results of the update:


So then I can easily see the results of the last update check and the status of my install and modules and if I need to install any updates.

You can see that scrolling through the list of recent log events can become overwhelming, so Drupal gives you the ability to filter the entries.  You do this by clicking “Filter Log Messages” above the list of events and then selecting what events you want to see.


As you can see you can filter by Type or by Severity.

The next report is the Recent Hits.  This report basically shows you what the recent hits on your website have been, by whom, and when they occured.  If you click on “Details” you can see the details of each hit, including any referrer where applicable.

The Top “access denied” errors gives us a count of how many times the website has thrown an access denied (403) error and what page the visitor was attempting to access. This can help us figure out if we have permission errors, or if someone is trying to get access to unauthorized parts of our website, such as the admin interface.

The Top “page not found” errors gives us a count of how many times the website has thrown a page not found (404) error and what page the visitor was looking for.  This can help us figure out if we have broken links, for example.

The Top Referrers” report tells you where your website visitors are coming from, if they’re finding you through other websites, through google, etc.  Looking at my top referrers report, you can see that the bulk of my visitors so far are coming from this blog 🙂


You can sort this list so that you see the referrer that has sent you the most hits (this is the default sort), by referring url, or by Last Visit.

The Top search phrases shows you what site visitors search for most on your website. This can be helpful in determining what topics are most popular and that maybe you need to write more content on.

The Top pages tells you what pages on your website get the most hits so you can determine your most popular content.  The default sort again in the number of hits.  This report will also tell you the time it takes your website to generate the page, giving you an overall idea of how long your visitors are waiting before they see the content, and therefore, how efficiently your website is running.

The Top Visitors report shows you the users who visit your site the most frequently.


If they’re not registered users, then you’ll simply see an IP number (hostname).  You also have the option on this page to ban certain visitors.  You may for example need to ban a particular IP (hostname) because you know that it’s a malicious bot.

The last two reports “Access Log Settings“, “Available Updates“, and “Status report” are ones that we’ve looked at before, so we won’t revisit them, but you can look at them again.

The reports section may seem a little boring now but it’s crucial that you keep an eye on your reports and logs so that you can catch errors and correct them.

In the next post, we’re going to get back to doing hands on stuff as we add more functionality to our website.  So stay tuned!

About The Author


  1. I’ve never used Drupal, but I see more and more website building tutorials about it lately. Seems like its undergoing a popularity spike. And I thought everyone was running toward WP for CMS these days!

  2. JTimber,

    Drupal is one of the most powerful Content Management Systems out there, and I don’t think it’s popularity will wane any time soon.
    Most people run to WP because it doesn’t have as steep a learning curve as Drupal, has many beautiful themes and useful plugins, and all that, but in the long run, the functionality and power of Drupal is hard to beat :).

    I think you’ll find if you work with both that each has its place and strengths. I love WP as a blogging engine, that’s what this blog is built on. But for complex, content intense websites that I anticipate scaling up and that will incorporate a lot of functionality and user interaction, I prefer to use Drupal, and in recent days, MODx.

    thanks for your feedback!

  3. Thanks for the Great Tutorials. it’s helping me so much as a beginner for Drupal. Keep updating. ill be waiting for the next one..



  4. Hello,

    Again this a super good tutorial, thank you!!. I would like to share with you some important things about the report data.. Referring domain is fine, but be careful about the reads and hits numbers because those ## are affected by spiders and bots visits so your numbers will have a huge difference with other tools like google analytics or yahoo. When you go online you will see a lot of guests but many of those will be bots.



  5. Hey Mary. Thanks for the tutorials. It was really helpful.

    I have some questions:

    1. Is it possible to edit/modify the default modules that come with Drupal?

    2. And if its possible, can you instruct us on how to modify the “poll” module. I’m thinking on adding the “link” result beside the existing “vote” button. I was thinking that maybe the user would like to view the vote trend, the statistic etc.

    Hope you can respond to this. Thank you again for some time.

    • Hardy,
      1. Yes you can edit the default modules, but it’s not recommended to meddle with the modules and themes that come as part of the core, simply because it will be a nightmare when it comes time to update. I think a better option would be to make a copy of the module and rename it and place it in sites/all/modules, and then modify that. This way, any updates won’t mess with your custom modifications. You will need to know some PHP for this.

      2. I have a long list of tutorial requests and will add this to the queue. But I would also recommend that you search around and ask on the Drupal forums, you’re likely to get some information there too.


      • Thank you so much for responding.

        I found a solution on the poll module. As you advised, I stop meddling with the default module. I looked around, and stumbled upon this great module called “pollfield”. I recommend this module to anyone who are interested in modifying/adding new functionalities/editing the default poll module.

        Thank you again.

        • Hardy
          Thanks so much for reporting back. I’d never heard of the pollfield module before. Drupal is full of so many goodies isn’t it? 🙂 I’ll have to try that one out, thanks for sharing!!


  6. Hi
    I dont see Top visitors tab in my report section.
    What do i do to enable it

  7. This is the awesome tutorial.
    It was really helpful.
    Keep doing same ……
    i’ll happy if i’ll get more…………………………

Leave a Reply