Apache::Mailtrack

Keep track of views of HTML newsletters
Download

Apache::Mailtrack Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Florian Helmberger
  • Publisher web site:
  • http://search.cpan.org/~florian/

Apache::Mailtrack Tags


Apache::Mailtrack Description

Keep track of views of HTML newsletters Apache::Mailtrack is a Perl modukle that assists you in keeping track of the response generated by an HTML newsletter (supposedly - or shall I say, hopefully - NOT SPAM), by logging all views of the newsletter (via an embedded image, which is served by this module) and logging all clicks on an URL (which gets also "served" by this module via redirect) into a database capable of SQL (PostgreSQL, MySQL, Oracle, and such).The data to be logged must be provided in a serialized string, generated by Data::Serializer, representing a hashref. Every entry of this hash is written into the database, using the key as fieldname and writing the value into that field.The implementation of a script to generate such userdata and embed it into an HTML mail is left as exercise to the reader.The handler can be triggered either using an images embedded in the newsletter, or by recipients clicking on a link that points to a location handled by Apache::Mailtrack.SYNOPSISIn your local httpd.conf: RewriteEngine On RewriteRule /Mailtrack/(*)/(.*) /Mailtrack/?userdata=$1&target=$2 < Location "/Mailtrack" > PerlSetVar db_dsn dbi:Pg:dbname=mydatabase PerlSetVar db_user myuser PerlSetVar db_pass mypass PerlSetVar db_table mytable PerlSetVar db_target mytarget PerlSetVar serializer YAML PerlSetVar secret "A top secret secret that is." PerlSetVar path /images PerlSetVar defaultfile mod_newsletter_default.jpg SetHandler perl-script PerlHandler Apache::Mailtrack < /Location >In the body of the HTML newsletter: < img src="http://www.site.at/Mailtrack//some.gif" > < a href="http://www.site.at/Mailtrack//url|use.perl.org" >X< /a > Requirements: · Perl


Apache::Mailtrack Related Software