Javascript and PHP

Hamzuz

New member
Oct 28, 2009
12
0
0
Sup[FONT=&quot] ???[/FONT][FONT=&quot]
[/FONT]​
I would like to monitor my incoming clicks using tracking202 ( The Inbound Javascript Landing Page code[FONT=&quot] [/FONT]).​
I'm using a php redirection code:

PHP:
[/LEFT]
  [LEFT]<?[/LEFT]
  [LEFT]Header( "HTTP/1.1 301 Moved Permanently(" ;[/LEFT]
  [LEFT]Header( "Location: http://my.affiliate.link(" ;[/LEFT]
  [LEFT]?>[/LEFT]

How Can I add the "Inbound Javascript Landing Page code" ?
10x
 


your probably better doing a JS forward because php process before the page loads and JS processes top down while the page loads so if you forwarding with php you will never load your tracking whaever.

Im not sure how tracking202 tracks exactly (hence why Im reading new noob section) but with GA you can use something like... (looks up how to post code) 1 sec.
 
this is the basic idea on GA for firing a track on click rather than page load.
Code:
<a href="" target="_blank" onclick="pageTracker._link('whatever');">