Movable Type Hack: Visitor Stats Detailed View

| | Comments (0) | TrackBacks (0)
Categories:
Mark Carey of MT-Hacks has written a beautiful Visitor Stats plug-in for Movable Type 4, which shows the visitor statistics on the dashboard when you login.

The free version doesn't include detailed views, such as the statistics for each entry, or which search terms led to your blog. These features are reserved for a "Pro" version, which can be expected to be rather expensive for individual blogs or blogs with low traffic.

But, you can get around that with a little hack that I wrote. It queries the Visitor Stats database and compiles the visitor statistics, letting you see the top list of visited pages, the top list of referrers, and the top list of search terms and search words.

I don't want to ruin Mark Carey's business, however, so I have deliberately made no efforts trying to integrate this hack with Movable Type. Instead, the hack is a stand-alone web page that connects to your Movable Type database and extracts and displays the statistics.

Requirements

  • Movable Type 4.
  • Visitor Stats from MT-Hacks.
Limitations

  • This code is deliberately made as a hack. The code is not prepared for users that want a nice interface. You should probably have some experience setting up an application on a web server to use this code.
  • The search term extraction relies on an array of regular expressions. It does not detect all of the search engines around the world, and it may not extract the search terms correctly. You may want to experiment a bit with the code.
Installation

  1. Download viewstats.zip for Movable Type.
  2. Extract the contents of viewstats.zip in a directory on your web server that you've password-protected with , e.g., .htaccess.
  3. Edit the file config.php so that the database connection is configured for your Movable Type database, and so that the blog ID corresponds to your blog ID. You may also want to edit the "ignore words" list, which contains those words that are ignored in the top list of search words.
Usage

  1. View your statistics by visiting the directory you created on your web server, and visiting view.php.
Please use the comments for support or questions.
  • Currently 1/5
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 1/5 (1 votes cast)

If you liked this post, share it with others:
  • Digg it!
  • Add to Del.Icio.Us
  • Add to Technorati
  • Stumble It!
  • NewsVine
  • Slashdot
  • Google Bookmarks
  • YahooMyWeb
  • Live
  • Facebook
  • Facebook
  • Add this post to Ma.gnolia
  • Add this post to Reddit
  • Thoof it

Categories

0 TrackBacks

Listed below are links to blogs that reference this entry: Movable Type Hack: Visitor Stats Detailed View.

TrackBack URL for this entry: http://blog.blazingangles.net/MT/mt-tb.cgi/62

Leave a comment

Sign In

About This Entry

This page contains a single entry by Ole Wolf published on September 20, 2007 8:18 AM.

Previous entry: Applying Habermas in Debates.

Next entry: How to Ruin Your Business.

Find recent content on the main index or look in the archives to find all content.

Subscribe to Comments

Recent Comments

Creative Commons License
This weblog is licensed under a Creative Commons License.