Getting whatcounter installed and using it
SETUP
- When you have signed up you will receive an email with your password and a link to download the .js file to upload to your webspace.
- In the same email you are supplied the code you have to paste on the pages you want to be tracked.
- Once you have both upload the .js file to your server and pasted the code into pages your visitors will immediately start being tracked. (Has to be pasted somewhere inbetween the <body></body> tags, we recommend just after the opening ≪body tag>
- If you are tracking a subdomain you need to upload the .js file to the subdomain folder also. And when you specify the url to the main index file specify fist the parent domain, eg http://www.domain.com and then on a new line http://subdomain.domain.com
- If you are tracking a framed page you may not be seeing your referrers, open up pphlogger.js, go to line 20 and remove the two forward slashes from // pp_frames = true;, save and upload
NAVIGATION
- logs - This page contains all of the individuals visitors data, such as full user agent, time online, page that referred them, search engine they came from, search terms they used,screen resolution, OS, how many and which pages they visited (only counts pages that you have pasted the code onto)etc.
- stats - This page contains all the general placed in tables, such as top keywords, top referrers, top domains, file downloads (optional),top resolutions, top countries etc
- calendar - As the name depicts it displays the data in relation to time, how many unique visitors/ page impressions per day, hour, month, year, all time
- browser/OS - This page displays all data about top browsers, screen resolutions, operating systems, search engines etc
- settings - This is where you can set a cookie to count your own visits or not, reset the counter, get the code to paste into each page if you've misplaced your welcome email, download the tracking .js file, and block ip's & referrers from being tracked.
- userprofile - This is where you can change your password, contact email, url to your index file (note, it's best jsut to put the url to base directory if tracking more than one page, otherwise enter all individual pages being tracked).
OPTION DEFINITIONS
- Language - Choose your interface langauge here
- show logs - choose the number of logs you wish to be displayed per page
- turn showref - choose if you want the referring page to be displayed or not (on/off)
- full agent - choose if you want the visitors full agent to be displayed or not (on/off)
- visitor paths - choose if you want the pages that have been visited by a user to be displayed or not (on/off)
- mp titles - this is the impressions and reloads a user has done, choose whether you want it to be displayed (on/off)
FEATURES
- Traceroute - How do you perform a traceroute? in the logs screen click on the visitors ip and a traceroute will open up in a new window
- Track a framed site - Open the .js file (in notepad preferably) and remove the comment slashes (//) from the following line, so it only reads pp_frames = TRUE;, save the .js file and upload it to your server again
- Clean up (calendar) - This is installed in the unlikely case that the calendar become 'messed up', if it does click this, but if it's found that users are using it without need the feature will be removed.
- IP Blocking - Enter here any IP's you wish to prevent being logged
- Referrer blocking - Enter here any referrers you wish to prevent being logged
- Own referrers - Enter here any of your own referring pages you wish to prevent being logged
- index.* --> / - This is if you would like any index files to be handled as "/"
- Short query - Only for advanced users - This comes in to play with dynamic url's, say you have a site where there is only one page but the content is brought in through a query, you obviously need to distinguish between queries but don't need to store the session ID, just the date for example, you simply need to enter 'date' into this box and the url will be saved up to that variable.
eg: www.domain.com/file.php?date=220011&s=2548952&page=news4433 would become www.domain.com/file.php?date=22011
If we enter "*" the whole query will be saved but by default the box is empty stripping the query string
- Reset Hits - This is fairly self explanatory, it resets your hits to whatever value you specify
- Search term - In the logs if you have the option enabled you will see the search term used by that particular visitor, click it and it will take you to the page with the link to you on it (a search engine results page for example)
MAKING THE COUNTER VISIBLE
In userprofile you will see the 'visible' options, by default whatcounter runs in invisible mode, but you can have it visible if you like. What's more you can fully customize it's appearance, you choose the text & background color and what type and size font is used. You can use whatever font you like, all you need do is us the 'js' version and put it inside a div with a certain font style..
- Choose your settings in userprofile, setting the font size, color, background color, background transparency, and type of font used
- You need add a line to the code you have pasted onto your pages, add this line so it's first in the code you paste on each page:
<script>showme='y'; st='js'</script>
- Use 'js' for text output and 'img' for image output
ON PAGE DISPLAY FEATURES - ONLINE USERS, VISITORS TODAY, DOWNLOAD COUNT, DAYS PAGE IMPRESSIONS ETC
All you need do to display this data on your page is add in a line of code, one of the following depending on what you want to display:
- Online users - <script language="JavaScript" type="text/javascript" src="http://www.whatcounter.com/showhits.php?id=username&st=js&type=onlineusr"></script>
- Total hits - <script language="JavaScript" type="text/javascript" src="http://www.whatcounter.com/showhits.php?id=username&st=js&type=hits"></script>
- Total pagr impressions - <script language="JavaScript" type="text/javascript" src="http://www.whatcounter.com/showhits.php?id=username&st=js&type=pageviews"></script>
- Today's hits - <script language="JavaScript" type="text/javascript" src="http://www.whatcounter.com/showhits.php?id=username&st=js&type=today"></script>
- Today's page impressions - <script language="JavaScript" type="text/javascript" src="http://www.whatcounter.com/showhits.php?id=username&st=js&type=todayviews"></script>
- Yesterday's hits - <script language="JavaScript" type="text/javascript" src="http://www.whatcounter.com/showhits.php?id=username&st=js&type=yesterday"></script>
- Yesterday's page impressions - <script language="JavaScript" type="text/javascript" src="http://www.whatcounter.com/showhits.php?id=username&st=js&type=yesterdayviews"></script>
- Month's hits (current) - <script language="JavaScript" type="text/javascript" src="http://www.whatcounter.com/showhits.php?id=username&st=js&type=month"></script>
- Month's page impressions - <script language="JavaScript" type="text/javascript" src="http://www.whatcounter.com/showhits.php?id=username&st=js&type=monthviews"></script>
TRACKING FILE DOWNLOADS
This if for you to track your files that you have up for download:
- <a href="http://www.whatcounter.com/dlcount.php?id=username&url=/yourfile.zip">yourfile.zip</a>
- Displaying your downloads as an image - <img alt="" src="http://www.whatcounter.comshowhits.php?id=username&st=img&mpdl=/files/yourfile.zip">
Replace username with your username
IF YOU HAVE ANY PROBLEMS PLEASE PROCEED TO THE SUPPORT FORUM
|