Wordpress outgoing

Our support will answer all your general questions here.

Moderator: Rock

yogiza
Posts: 4
Joined: Wed Dec 26, 2012 7:44 am

Wordpress outgoing

Post by yogiza »

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
texpert
Site Admin
Posts: 719
Joined: Sat Mar 14, 2009 5:54 pm

Re: Wordpress outgoing

Post by texpert »

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
yogiza
Posts: 4
Joined: Wed Dec 26, 2012 7:44 am

Re: Wordpress outgoing

Post by yogiza »

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?
yogiza
Posts: 4
Joined: Wed Dec 26, 2012 7:44 am

Re: Wordpress outgoing

Post by yogiza »

Nevermind I think its working now. I forgot to put the following code in first.
<script type="text/javascript" src="/js/jquery.js"></script>
river
Posts: 9
Joined: Thu Aug 27, 2009 5:47 pm
Contact:

Re: Wordpress outgoing

Post by river »

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)
vicotnic
Posts: 6
Joined: Sat Jan 03, 2015 11:39 pm

Re: Wordpress outgoing

Post by vicotnic »

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
How do I need change the code if I want use default skim instead of External skim?
texpert
Site Admin
Posts: 719
Joined: Sat Mar 14, 2009 5:54 pm

Re: Wordpress outgoing

Post by texpert »

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
vicotnic
Posts: 6
Joined: Sat Jan 03, 2015 11:39 pm

Re: Wordpress outgoing

Post by vicotnic »

I can´t see the incoming traffic, only the clicks.

Do I need change any code for that?
texpert
Site Admin
Posts: 719
Joined: Sat Mar 14, 2009 5:54 pm

Re: Wordpress outgoing

Post by texpert »

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>
vicotnic
Posts: 6
Joined: Sat Jan 03, 2015 11:39 pm

Re: Wordpress outgoing

Post by vicotnic »

texpert 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>
I had put thiss code between <head> </head> tags, but it still not count my raw and unique traffic
Only the clicks
Post Reply