Drupal's Core Statistics Module

By

This article was published in the print magazine Drupal Watchdog, Volume 6 Issue 2, Fall 2016, on page 12, by Linux New Media. The magazine was distributed at Drupalcon Dublin, 2016-09-26.

For most site builders, when there is a need to record basic site traffic information, the first solution that usually comes to mind is Google Analytics, which can gather a plethora of data. But it does require increasing page size with additional JavaScript, maintaining a Google account, and relying upon a third party for accuracy and data security. It may be sufficient to use the Statistics module that has been built into Drupal core since version 4. It tracks and reports on recent hits (for each page load, the URL, the timestamp, the visitor's Drupal username if logged in, and their IP address), top referrers (the previous URLs for all external visitors), top pages (aggregated hit counts and page generation times), and top visitors.

Copyright © 2016 Michael J. Ross. All rights reserved.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <address> <area> <blockquote> <br> <cite> <code> <dd> <div> <dl> <dt> <em> <fieldset> <h1> <h2> <h3> <h4> <h5> <h6> <hr> <img> <input> <li> <map> <ol> <p> <pre> <span> <strong> <sup> <u> <ul>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
2 + 6 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.