![]() |
|||
|
|||
|
Displaying Real Time Statistics on your Web SiteOverviewIf 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):
RequirementsBefore 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 SampleDownload 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 InstructionsOnce 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. |
|
||||||||||||