Please take 5 minutes time and read installation instructions carefully and completely! This will ensure a proper and easy installation.
- Create a folder in your public_html folder named clicker (or anything you wish to call it)
- Open file settings.php in your favorite PLAIN TEXT editor (like Notepad or Wordpad on Windows systems, DO NOT use MS Word or similar editor), scroll down to where it says "SETUP YOUR COUNTER" and set these variables:
Variable Description/Setup $settings['apass'] Change the default password admin to the password you will use to login to the Admin panel. Use only letters a-Z, A-Z and digits 0-9.
TIP: For security reasons choose a unique password and not a password you use to access other parts of your website (like FTP, control panel, e-mail, ...).
$settings['click_url'] Set this variable to the URL of click.php file when uploaded to your server, for example:
$settings['count_unique'] Enable counting clicks hits only. For more information read Counting UNIQUE clicks below. $settings['unique_hours'] Number of hours a click is considered unique. For more information read Counting UNIQUE clicks below.
TIP: There are few optional advanced settings in the settings.php file, don't change any of them unless you understand what they do.
Save and close the settings.php file.
FTP to the public_html folder of your account and create a folder where you will install CCount (for example named "clicker").
Corresponding URL: http://www.yourdomain.com/clicker
Upload all CCount files to this folder. Images (delete.gif, edit.gif, line.gif and reset.gif) must be transferred in BINARY mode, all other files in ASCII mode (refer to your FTP client instructions for details on how to set transfer mode properly).
Make sure that the PHP scripts have permission to write to files clicks.txt and ids.txt. On Unix (Linux) servers CHMOD these files
to 666 (rw-rw-rw-).
That's it, your CCount should work now!
In your browser open URL where you have installed CCount, for example:
Type in the admin password you set in settings.php, click Enter admin panel and voila, you are in the Admin panel! Things should be easy from now on. Use the Add a link form to add links you wish to count clicks on and follow instructions.
Got an error message or can'tlogin? A few solutions can be found below under HELP and Troubleshooting.
Using PHP Click Counter
Not sure how to use CCount to count click? Here is a sample setup:
- You want to count how many times the link to Yahoo.com has been clicked from your website. You have the link pointing to http://www.yahoo.com and this is the HTML code on your website:
Go to Yahoo!
- Login into the CCount Admin panel. Open
and enter your admin password.
- Find the form titled Add a link. In the Link URL: enter the link you want to count clicks on. In this example you would enter
Optionally you can also choose a name for your link (for example Link to Yahoo from homepage) and the number you want to start counting from (if you want to start counting from 100 enter 100 in the box).
- Click the Add link button and the link will be added to CCount.
You will be given a link ending with click.php?id=ID where ID is a number, for example:
This is called a tracking link.
- Now instead of linking directly to the link you are counting clicks on, you need to link to your tracking link instead!
In our example instead of linking directly to http://www.yahoo.com, you must link to
The HTML code you would use for your link is for example
Go to Yahoo!
When someone clicks on the tracking link CCount will count click on the link and then redirect your visitor to http://www.yahoo.com
Counting UNIQUE hits
If you wish to count unique clicks only, then set $settings['count_unique'] to 1 in the settings.php file. Doing so CCount
will only count clicks considered unique.
Unique clicks are tracked with the help of cookies. Number of hours a click is considered unique can be adjusted by modifying value for $settings['count_unique'] in the settings.php file. A value of 24 means only one click from the same browser will count as unique within a 24-hour period.