Many of clients asked me how to use Trade Pulse with toplist so here is short how-to which will cover how to track incoming traffic and all clicks:
1) Install Trade Pulse & Wordpress, tweak everything what you need
2) Open your current theme header.php file (usually found in wp-content/themes/THEMENAME/header.php location)
3) Add this code between <head></head> tags:
<?php virtual("/tp/ssi_in.php")?>
, if it doesn't work(ons ome hosts ONLY) use this:
<?php include("/full/path/to/tp/ssi_in.php")?>
then add this just after the start of <body> tag:
<img src="/tp/img.php" width="0" height="0" style='display:none;border:none'>
This code will track your incoming traffic and execute TP cron
4) Go to
http://jquery.com/ and download latest version, upload it to yourdomain.com/js/jquery.js
5) Add this code between <head></head> tags:
<script type="text/javascript" src="/js/jquery.js"></script>
This code will include jquery library.
5) Add this code between <head></head> tags:
<script>
jQuery(document).ready(function(){
jQuery("a").click(function(){
url=jQuery(this).attr('href');
jQuery(this).attr('href','/tp/out.php?p=100&link=click&url=' + escape(url));
});
});
</script>
This code will make all clicked links go through Trade Pulse, it's 500% SEO friendly and it works just for JAVASCRIPT enabled users.
How to test if all works?Leave some traffic through your blog and within couple minutes you should see INCOMING traffic in index stats and under links statistics you should see links with name CLICK.
How U liked this? Show us sites you implemented it on...let me hear some comments!