View Single Post
Old 11-08-2009, 11:57 AM  
ipolic
Confirmed User
 
ipolic's Avatar
 
Join Date: Nov 2003
Posts: 1,483
How to count all clicks on your blog with TradePulse? Here is simple JQUERY TRICK!

With this simple script, all clicks on your blog will be tracked by TP so you can even see how productive your traffic is what is VERY hard to do when integrating trade script and wordpress and similar blog content management systems. So surfer will see normal link, when he clicks his click will go thru TP 100% to content by default or you can change parameter to fit your needs and it will even save outgoing domain to which you link in links statistics of TP. I love this feature and I added it already to all my blogs, couple lines of code and it ROCKS:

Code:
<script>
$(document).ready(function(){
$("a").click(function(){
url=$(this).attr('href');
if (url.match(/^http(s)?:\/\//i)){
path=url.replace(/^http(s)?:\/\/(www\.)?/i,'').split(/\//);
$(this).attr('href','/tp/out.php?link=' + path[0] + '&p=100&url=' + escape(url));
}
});
});
</script>
*Script will not track links without http and www inside, so you can use still normal toplists and get them working thru tp, so for example if <a href="/some/file.php"> this script wont push it thru tp, but if it's <a href="http://www.domain.com/some/file.php"> click will be pushed thru TP.
*You need to use JQUERY for this to work, you can download it here:http://docs.jquery.com/Downloading_jQuery and you can see instructions how to setup it here: http://docs.jquery.com/How_jQuery_Works.

You can download free version of Trade Pulse at Trade Script - TGP Script - Traffic Trades - TradePulse The Nr1 Trade Script!!!

I hope you like this simple and neat trick and that you will use it a lot. Cheers!
ipolic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote