Home > Questions and Answers > Tracking Questions

202 tracking w/o javascript? (7)


11-15-2011 12:29 PM #1 timjim (Member)
202 tracking w/o javascript?

Hey all,

I've got some redirect only LP's set up in 202 which just contains the PHP cloak redirect code. i.e.

...
if (isset($_COOKIE['tracking202outbound'])) {
$tracking202outbound = $_COOKIE['tracking202outbound'];
} else {
$tracking202outbound = 'http://xxx.com/tracking202/redirect/lp.php?lpip=1234&pci='.$_COOKIE['tracking202pci'];
}
...

This lets me just supply this one page to traffic sources, and change the actual destination URL whenever I need to Works great...

The problem is, nothing is getting tracked!

I think that the only way clicks are tracked is if I include the javascript code provided via the LP code generating section in 202. However, that means that I have to deliver data to the users browser, which of course slows down my redirect. I had assumed that the code above would log clicks, but it doesn't!

Is there any way to track that someone has hit that LP using only PHP so I can keep things nice and quick server side, or are there any other ways to accomplish what I am trying to do??


11-15-2011 11:19 PM #2 tijn (Moderator)

Unless your doing PPV, a javascript redirect will be fast enough. Just dont include any other fluff in your page. Put the 202 javascript in the head and your JS redirect after it. You can still use php to cloak.

heres code of a JS redirect

<script>
window.location.href="http://domain.com"
</script>


11-15-2011 11:48 PM #3 timjim (Member)

Yep, I could do that, but for things like mobile and PPV I'd like to keep the client side redirects to a minimum.

If it can't be done at all in 202, I'll suck it up and javascript it however.


Edit: Just to clarify... you're saying to load the page on the client, fire the 202 script to log the click, then javascript redirect to my php cloak redirect page, yeah?


11-15-2011 11:52 PM #4 tijn (Moderator)

yeah but be careful with mobile as feature phones often have trouble with JS or dont support it


11-15-2011 11:58 PM #5 timjim (Member)

Quote Originally Posted by tijn View Post
yeah but be careful with mobile as feature phones often have trouble with JS or dont support it
Yeah, exactly why I want to keep all my URL shuffling server side.


11-16-2011 12:02 AM #6 tijn (Moderator)

this post might help

http://ctrtard.com/affiliate-marketi...n-tracking202/


11-16-2011 12:48 AM #7 timjim (Member)

That one still needs the javascript executed to register the click, the changed redirect page just uses an array to hold the strings rather than a normal variable... cool, but still needs the client side code to execute.

It's looking grim!


Home > Questions and Answers > Tracking Questions