Translations of this page:
Table of Contents

The beginning

There are 2 ways to count hits

Simple

If you have many SHTML pages add this code after <body> tag

<!--#include virtual="/scj/cgi/include.php?${QUERY_STRING}"-->

For php pages add

<?php include_once ('./scj/cgi/include.php'); ?> 

Advanced

First of all you have to copy index.php, common.php, out.php from scj/cgi directory to the directory, where the surfers will come to. Usually it’s a domain’s root. If you already have any other files named index.* there, they have to be renamed or transferred to another directory.

next step is to create the necessary number of pages and point them to the script in Settings→CJ Pages.

Script will rotate those pages for serfers one by one, i.e. for the first time serfer goes to http://yourdomain.com/page1.html

For the second time – http://yourdomain.com/page2.html For the third - /usr/home/yourdomain.com/page3.html

And then everything starts from the very beginning.

You can add CJPages as URLs or with absolute path. Last one is preferable.

If you have many pages (ie archives and so on) add this code every page where you want to count traffic

 
start_here.txt · Last modified: 2009/06/01 00:00 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki