ProductsSupportAbout
Home > Support > Metatraffic > Resources   
Support

Displaying Real Time Statistics on your Web Site

Overview

If you want to incorporate statistics in your web pages, look no further. Using MetaTraffic, you can display the following type of information in your web page(s):

  • Users online
  • Visits or unique visitors (today or custom date range)
  • Page views of a specific page or all pages (today or custom date range)

Requirements

Before you get started, you need to have MetaTraffic 2.0 installed on your web site. If you don't have this already, you can download it here. Full instructions on how to install MetaTraffic are in the readme.htm file included in the download. If you have problems, use the support forum. You will also need a bit of ASP and HTML experience.

Download Sample

Download the SDK sample. This is a zip file containing a sample ASP page on how to display stats in a web page. By modifying this file to suit your needs and including it in your pages, you can display real time statistics on your web site.

Quick Start Instructions

Once you have downloaded the sdk sample zip file, extract the sdk_example.asp file. Open this file in your favorite text or HTML editor. Modify the file to suite your needs and then upload it to your MetaTraffic installation folder on your web site. Load the page that you uploaded in your web browser to ensure the statistics are displaying correctly. Now, you can include the file in your web pages. Add the following code into your ASP pages to display the statistics:

<-- #Include Virtual="/metatraffic2/sdk_example.asp" -->

The above include example assumes the left the original file name intact and installed MetaTraffic to the default recommended directory. Your exact path may differ slightly. You can also use a file include:

<-- #Include File="metatraffic2/sdk_example.asp" -->

If you only wish to display a few statistics and not all of them, make sure you comment out the ASP Method that generates the particular statistic that you are not using. This will optimize the page and make page loading times quicker. You can do this by placing an ' (apostrophe) at the beginning of the line. For example, if you weren't going to display the distinct pages statistic, comment out the appropriate line in the sdk example like this:

’ intDistinctPages = objStats.CountDistinctPages()

If you have any questions or need support, feel free to post a message in our support forum. Please make sure you post the message in the MetaTraffic Misc forum.

Purchase
Purchase multiple licenses of MetaTraffic, our web analytics software, and save 50% or more off the single license price.

Buy Now
 
Latest News
Jan 25th, 2008
MetaTraffic Lite and Pro 2.26 Released

Sept 11th, 2007
MetaTraffic Lite and Pro 2.25 Released
 
Newsletter

Read our privacy policy

ProductsSupportAbout
Copyright © 2006, Metasun Software Inc. All rights reserved | Legal notice | Privacy Policy | Resources