Wordpress outgoing
Moderator: Rock
Wordpress outgoing
I have a bunch of wordpress tube sites and was wondering how to set up outgoing tracking for each post?
I saw the following code on pulse trade and was wondering if it would work, and if so what would need to be changed for trade expert? Or is there a simpler way to do it?
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:
Code:
<script type="text/javascript" src="/js/jquery.js"></script>
This code will include jquery library.
5) Add this code between <head></head> tags:
Code:
<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
I saw the following code on pulse trade and was wondering if it would work, and if so what would need to be changed for trade expert? Or is there a simpler way to do it?
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:
Code:
<script type="text/javascript" src="/js/jquery.js"></script>
This code will include jquery library.
5) Add this code between <head></head> tags:
Code:
<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
Re: Wordpress outgoing
Hi yogiza,
use the above code, but change this line:
jQuery(this).attr('href','/te3/out.php?p=100&link=click&url=' + escape(url));
with this one:
jQuery(this).attr('href','/te3/out.php?s=100&l=click&u=' + escape(url));
and let me know if it work.
best regards,
Alex
use the above code, but change this line:
jQuery(this).attr('href','/te3/out.php?p=100&link=click&url=' + escape(url));
with this one:
jQuery(this).attr('href','/te3/out.php?s=100&l=click&u=' + escape(url));
and let me know if it work.
best regards,
Alex
Re: Wordpress outgoing
Tried it but it doesn't seem to be tracking anything. I'll pm you the site and login if you want to take a look. Is there a way to just use the wordpress editor to change the link code for all posts?
Re: Wordpress outgoing
Nevermind I think its working now. I forgot to put the following code in first.
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/jquery.js"></script>
Re: Wordpress outgoing
hey there 
i have tried this on my blog - and its working nearly perfectly for me.
but there is one thing - i would need to know and to tweak for this beeing the perfect solution for my blog.
my blog is a picture gallery porn site.
i would like to use te3 on every external link. but not for my internal links ->
such as: post titles; category buttons and such things ...
te3 should only be used with linked external images - galleries and videos.
is there a chance to tweak the above given code to do exactly what i would need?
thanks in advance to everyone - and warmest regards
torsten (river)

i have tried this on my blog - and its working nearly perfectly for me.
but there is one thing - i would need to know and to tweak for this beeing the perfect solution for my blog.
my blog is a picture gallery porn site.
i would like to use te3 on every external link. but not for my internal links ->
such as: post titles; category buttons and such things ...
te3 should only be used with linked external images - galleries and videos.
is there a chance to tweak the above given code to do exactly what i would need?
thanks in advance to everyone - and warmest regards
torsten (river)
Re: Wordpress outgoing
How do I need change the code if I want use default skim instead of External skim?texpert wrote:Hi yogiza,
use the above code, but change this line:
jQuery(this).attr('href','/te3/out.php?p=100&link=click&url=' + escape(url));
with this one:
jQuery(this).attr('href','/te3/out.php?s=100&l=click&u=' + escape(url));
and let me know if it work.
best regards,
Alex
Re: Wordpress outgoing
Hello,
if you want to use default skim you need to remove the skim pattern from outgoing link, if this is your outgoing link:
jQuery(this).attr('href','/te3/out.php?s=100&l=click&u=' + escape(url));
you need to remove s=100:
jQuery(this).attr('href','/te3/out.php?l=click&u=' + escape(url));
best regards,
Alex
if you want to use default skim you need to remove the skim pattern from outgoing link, if this is your outgoing link:
jQuery(this).attr('href','/te3/out.php?s=100&l=click&u=' + escape(url));
you need to remove s=100:
jQuery(this).attr('href','/te3/out.php?l=click&u=' + escape(url));
best regards,
Alex
Re: Wordpress outgoing
I can´t see the incoming traffic, only the clicks.
Do I need change any code for that?
Do I need change any code for that?
Re: Wordpress outgoing
Hello, have you included incoming tracking code ?
Here is the code if you use any kind of cache:
<script type="text/javascript">
<!--
function getquery(n) {
var half = location.search.split(n+'=')[1];
return half ? decodeURIComponent(half.split('&')[0]):null;
}
function te3_remote_track() {
var remotedomain = 'yourdomain.com/te3/'; // remote tracking domain with TE3 dir, e.g. sub.domain.com/te3/
var preventfrom = 'yourdomain.com'; // prevent double tracking from your own domain, e.g. domain.com
var docref = parent.document.referrer;
var ref= getquery('ref');
var rnd = Math.floor(Math.random() * 99999999);
if(!docref) docref='';
if(!ref) ref='';
docref=encodeURIComponent(docref);
document.write('<div style=\"display: none;\"><img src=\"http://'+remotedomain+'in.php?p=default&preventfrom='+preventfrom+'&ref='+ref+'&rnd='+rnd+'&refremote='+docref+'\" width=\"1\" height=\"1\" border=\"0\"></div>');
}
te3_remote_track();
// -->
</script>
Here is the code if you use any kind of cache:
<script type="text/javascript">
<!--
function getquery(n) {
var half = location.search.split(n+'=')[1];
return half ? decodeURIComponent(half.split('&')[0]):null;
}
function te3_remote_track() {
var remotedomain = 'yourdomain.com/te3/'; // remote tracking domain with TE3 dir, e.g. sub.domain.com/te3/
var preventfrom = 'yourdomain.com'; // prevent double tracking from your own domain, e.g. domain.com
var docref = parent.document.referrer;
var ref= getquery('ref');
var rnd = Math.floor(Math.random() * 99999999);
if(!docref) docref='';
if(!ref) ref='';
docref=encodeURIComponent(docref);
document.write('<div style=\"display: none;\"><img src=\"http://'+remotedomain+'in.php?p=default&preventfrom='+preventfrom+'&ref='+ref+'&rnd='+rnd+'&refremote='+docref+'\" width=\"1\" height=\"1\" border=\"0\"></div>');
}
te3_remote_track();
// -->
</script>
Re: Wordpress outgoing
I had put thiss code between <head> </head> tags, but it still not count my raw and unique traffictexpert wrote:Hello, have you included incoming tracking code ?
Here is the code if you use any kind of cache:
<script type="text/javascript">
<!--
function getquery(n) {
var half = location.search.split(n+'=')[1];
return half ? decodeURIComponent(half.split('&')[0]):null;
}
function te3_remote_track() {
var remotedomain = 'yourdomain.com/te3/'; // remote tracking domain with TE3 dir, e.g. sub.domain.com/te3/
var preventfrom = 'yourdomain.com'; // prevent double tracking from your own domain, e.g. domain.com
var docref = parent.document.referrer;
var ref= getquery('ref');
var rnd = Math.floor(Math.random() * 99999999);
if(!docref) docref='';
if(!ref) ref='';
docref=encodeURIComponent(docref);
document.write('<div style=\"display: none;\"><img src=\"http://'+remotedomain+'in.php?p=default&preventfrom='+preventfrom+'&ref='+ref+'&rnd='+rnd+'&refremote='+docref+'\" width=\"1\" height=\"1\" border=\"0\"></div>');
}
te3_remote_track();
// -->
</script>
Only the clicks