Forum Moderators: coopster
well i m newbie in php.........and i m looking for the following
referral tracking tool
built in the following manner
two parts js + php page
js on the websites where i have to track the referrals(clients website or any websie that wants this tool)
php with me so that i can give them the reports
plz let me know how do i do that.
Regards
I think you will have to use 2 seperate packages to do this.
thanks for your reply .i googled the web and found that my requirement can be fulfilled by using image beacons infact i even got something very near to what i want
here is the javascript that needs to be put on the website whose referral i need to track
<img src="/set_width.php?w=800" alt="" border="0" />
<?php// Filename: SET_WIDTH.PHP
// Initialise session stuff here
// Start processing user's browser information
$_SESSION['width'] = (!is_numeric($_GET['w'])? 800 : $_GET['w'] );
// End of processing.
// Send a BEACON image back to the user's browser
header( 'Content-type: image/gif' );
# The transparent, beacon image
echo chr(71).chr(73).chr(70).chr(56).chr(57).chr(97).
chr(1).chr(0).chr(1).chr(0).chr(128).chr(0).
chr(0).chr(0).chr(0).chr(0).chr(0).chr(0).chr(0).
chr(33).chr(249).chr(4).chr(1).chr(0).chr(0).
chr(0).chr(0).chr(44).chr(0).chr(0).chr(0).chr(0).
chr(1).chr(0).chr(1).chr(0).chr(0).chr(2).chr(2).
chr(68).chr(1).chr(0).chr(59);
?>
but still i m not able to get it work properly. i mean i still can not retrieve the value of 'w'. can anyone look into this and help me.
Regards
Manish
well i m newbie and dont even know if this is possible to do that i m passing the a value from the javascript which is on some other site and that from the src tag of the img.
i.e <img src="/set_width.php?w=800" alt="" border="0" />
it is just i found this in a forum and m trying to use it.
If it is the param then I would start by calling the script in your browser directly and seeing if you can grab it and then using the image tag method once it is working the other way.
try dumping the $_GET and seeing what is in there, if you call the script directly it will work, not sure what will happen if you dump using the image tag.
can u plz check the follwoing links where i found the info abt image beacons
<snipped links>
Regards
Manish
[edited by: coopster at 8:05 pm (utc) on Mar. 18, 2006]
[edit reason] no urls per TOS [webmasterworld.com] [/edit]