Forum Moderators: coopster

Message Too Old, No Replies

Tracking Image

Anybody has that flying around?

         

nxfx

5:24 pm on Sep 2, 2006 (gmt 0)

10+ Year Member



Hello,

i know how to do it, but i am lazy,. does anybody has a good script flying around that can be implemented via a IMG SRC Screen and then saves the visitors data in a DB?

I started writing on it, but its a hassle ;)

Thank you

dreamcatcher

8:07 am on Sep 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi nxfx,

Have you tried looking on Hotscripts.com? Check out the link tracking section, you are sure to find a pixel tracking system.

dc

barns101

1:37 pm on Sep 3, 2006 (gmt 0)

10+ Year Member



I use the following script:


<?php
$time = date('dS M Y (H:i:s)');
$host = gethostbyaddr($_SERVER['REMOTE_ADDR']);
@mysql_connect("localhost", "user", "pass") or die;
@mysql_db_query("database", "INSERT INTO views VALUES ('','$user','$REMOTE_ADDR','$host','$time','$HTTP_USER_AGENT')");
?>

The image is like this (comes from a database, hence the use of $row[] array)


<img src="http://example.com/image.php?user=$row[username]" height="0" width="0">

It's a simple one that I wrote, so I can't say that it' any good. ;) Also, remember that a great number of people (the majority?) now have images turned off in emails by default.

inquireorenquire

4:56 am on Sep 4, 2006 (gmt 0)

10+ Year Member



To add the the previous script, make a 1x1 gif or similar, put it in a file, e.g. '1x1.gif'

Then, at the end of the PHP code, write:


header("Content-type: image/gif"); //or jpeg, etc. depending
print file_get_contents("1x1.gif"); //show the gif

That way they will get a valid image back - no errors!

nxfx

10:59 am on Sep 4, 2006 (gmt 0)

10+ Year Member



Thank you,

i will post mine here once it is done :) I love data, so i capture Adwords IDs, Refers, Resolution etc :) I update u guys once it is done!

Thx