Re: question about tracking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some tricks are possibles but they are not 100% ok.  When you make
some image into your e-mail be a php file with the mime-type of image,
you can make your php file save into the database the acess of this
page before print the image into screen.

When your user see the images into your e-mail, the php file will be
called and you will receive a feed back from him. You can make a
better feed back if you make a unique register of each e-mail you
send. This record can register from who you  send your e-mail, when,
what message, etc.. All this information will be usefull to make your
newsleter better. The feedback information can be crypt in a md5
feedback code save into register.

The problem of this trick is some e-mail clients, me for example,
first look the e-mail as text-plain not calling any external file into
message as js, css or images. We make this kind of think exactly to
prevent be record into a list of spam. But if your client is ready to
receive the message of you send, probaly he will allow show images.

I not have a beautiful example right now but is something like

# example 1

<!-- e-mail message -->
<html>
<body>
Hi this is a test e-mail
<img src="http://www.mysite.com/feedbackemail.php?message=213123&user=348478"; />
All we want is say good night
</body>
</html>

feedbackemail.php
<?php
$iMessage = $_REQUEST[ "message" ];
$iUser = $_REQUEST[ "user" ];

/**
 * Save into some table of this user read this message
 */
$strSql = "UPDATE MESSAGES SET READED = TRUE WHERE iMessage =
:iMessage AND iUser = :iUser"
$arrParams  = Array( "iMessage " => $iMessage , "iUser" => $iUser );
(....)

/**
 * Read the image and print that after change the mime tpye
 */
header( "file-type: image/gif" );
(....)
print file_get_contents( "smile.gif" );

?>

# example 2

<!-- e-mail message -->
<html>
<body>
Hi this is a test e-mail
<img src="http://www.mysite.com/feedbackemail.php?key=90DSF8723K34"; />
All we want is say good night
</body>
</html>

feedbackemail.php
<?php
$sKey = $_REQUEST[ "key" ];

/**
 * Save into some table of this user read this message
 */
$strSql = "UPDATE MESSAGES SET READED = TRUE WHERE sKey = :sKey"
$arrParams  = Array( "sKey" => $sKey );
(....)

/**
 * Read the image and print that after change the mime tpye
 */
header( "file-type: image/gif" );
(....)
print file_get_contents( "smile.gif" );

?>



On Nov 26, 2007 6:57 PM, Sudhakar <finals27@xxxxxxxxx> wrote:
>
>
>
>
>
>
> i have made a email newsletter sign up page and there is a php file
>  that processes the information and inserts the information the user
>  has entered in the form into a table.
>
>  the php file is in linux server and the webpage is an asp page hosted
>  on a cms system using microsoft
>
>  using the php file that is in linux is it possible to track which page
>  the user had clicked on the website before filling out the newsletter
>  information as there are links in more than 1 page on the website from
>  where the user can click and fill out the form.
>
>  please advice if this can be done and if possible please provide the
>  code.
>
>  thanks.
>
>  



-- 
     O        Blaine - What the developing
     /|\        should'nt have been
      |        thiagomata.blog.com
     / \

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux