Need Help?
 

If you're having trouble with an iFinity Product, use the Support Forums to search for answers, and to post questions.

If you need help faster than that, or can't figure out the answer, try our Premium Support service.

 
Crafty Code  
Mar 6

Written by: Bruce Chapman
Thursday, March 06, 2008 1:51 PM

 I've created a set of reports that expand the DNN Site Log Reports.  I wrote these reports to get more information out of the treasure-trove of log data stuck in the DNN tables.  In particular, I've always wanted a site-level view of the link clicks, particular with regard to file and page clicks.

The three reports are:

  • Link Clicks Report : Shows the link click statistics for any links in DNN which have been marked as 'Log each click'.
  • File Downloads Report: Shows the link click statistics for any downloads from a file link.
  • User Visit Detail:  Shows the detail of an individual user visit, including entry and exit times, pages viewed, referring Url and any Affiliate information.

 Link Clicks Report

 The Link Clicks report give a simple overview of the different links in a DNN portal, and how often they are clicked. The Clicks per day averages out the number of clicks since the link was created. Here is an example:

Link Destination Number Clicks Last Click Date Link Created Date Link Module Title Link Module Page Clicks per Day
/Blogs 212 Dec 02, 2007 Mar 29, 2007 Quick Links [Removed] 0.85
/Products 36 Mar 06, 2008 Feb 01, 2008 New on the site! /Home 1.06
/Products/PremiumSupport 28 Mar 06, 2008 Feb 01, 2008 New on the site! /Home 0.82

File Downloads Report

The file downloads report works off any file where you have used a standard DNN link module entry to download a file via a postback (instead of a straight Url to the file location). The report shows how many downloads there have been for each file, and how much data has been transferred for that file. The Clicks per day averages out the number of clicks since the link was created. Here is an example:

Downloaded File Number Downloads Last Download Date Link Created Date Total Download Size Clicks per Day
downloads/DotNetNuke.UrlRewrite_demo.zip 262 Mar 02, 2008 Aug 31, 2007 11.40 Mb 1.42
downloads/DNN_UpdateSiteLogProcsScript.zip 196 Mar 05, 2008 Aug 23, 2007 537.47 Kb 1.01

User Visit Detail

The User Visit Detail report gives a more detailed listing of actual user visits, showing where a user started and finished their visit, including the number of pages and if they came in on an Affiliate link. It can be quite useful for tracking individual problems and getting a good overview on how visitors actually use your site. Here is an example:

Date Start of Visit End of Visit Visit Length (minutes) User IP Address Pages Viewed Referrer Entry Page Exit Page User Name Vendor - Affiliate
06/03/2008 14:34:00:0 14:34:00:0 < 1 00.00.00.00 1 http://search.live.com/results.aspx ?q=support&mrt=en-us&FORM=LIVSOP Support Forums Support Forums    
06/03/2008 14:28:00:0 14:28:00:0 < 1 00.00.00.00 1 http://search.live.com/results.aspx ?q=bruce&mrt=en-us&FORM=LIVSOP Bruce's Blog Bruce's Blog    
06/03/2008 13:18:00:0 13:18:00:0 < 1 00.00.00.00 1 http://search.live.com/results.aspx ?q=dotnetnuke&mrt=en-us&FORM=LIVSOP Products Products    
06/03/2008 06:05:00:0 06:06:00:0 1 00.00.00.00 2 http://www.google.se/search ?q=dotnetnuke+friendly+url Products Free Downloads  

I removed the IP addresses in the interests of privacy

How to Install

Here is the very simple steps to install the reports;

  1. Download the DotNetNuke Reports Scripts
  2. Extract the zip file to a location on your computer, and open one of script files in a text editor
  3. On your DNN installation, go to the Host->Sql page
  4. Paste the script from the file into the 'SQL' box on the page
  5. Check the 'Run as Script' checkbox
  6. Click on 'Execute'
  7. Repeat for each of the Reports you want to install
  8. Go to your Admin->Site Log page
  9. You will see the new reports in the drop down list.  Select the report and run.
  10. Enjoy!

NOTE: The Link Click reports (File Downloads and Link Clicks) are not affected by the date range boxes shown on the Site Log Reports page.  Changing these dates will have no affect, as the links are only saved as a total, not logged over time.

Copyright ©2008 Bruce Chapman

Tags:

Your name:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment    Cancel  
   
Page Tags