Forum Moderators: coopster

Message Too Old, No Replies

referral tracking tool

referral tracking tool

         

xs2Manish

4:07 pm on Mar 15, 2006 (gmt 0)

10+ Year Member



Hi All

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

jatar_k

5:06 pm on Mar 15, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I would take a look at this thread
[webmasterworld.com...]

I think you will have to use 2 seperate packages to do this.

xs2Manish

8:39 pm on Mar 15, 2006 (gmt 0)

10+ Year Member



Hi jatar_k

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" />

below is the php page of my server


<?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

jatar_k

8:58 pm on Mar 15, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



how are you trying to get it? what does the code look like to retrieve it?

xs2Manish

10:30 am on Mar 16, 2006 (gmt 0)

10+ Year Member




i m retrieving the value of w using $_GET['w'].

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.

jatar_k

2:25 pm on Mar 16, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I wasn't really sure if you meant you couldn't get it out of the url or if you couldn't get it out of the session.

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.

xs2Manish

5:18 pm on Mar 17, 2006 (gmt 0)

10+ Year Member



Hi there

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]