The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Apache2::Filter::GoogleAnalytics - Add GA code to served HTML document

SYNOPSIS

  PerlLoadModule Apache2::Filter::GoogleAnalytics
  <Location /to-analyze>
          WebPropertyID UA-80868086-2
          PerlOutputFilterHandler Apache2::Filter::GoogleAnalytics
  </Location>

DESCRIPTION

This module transparently adds a Google Analytics service scriptlet to each HTML document that Apache httpd serves. It behaves asynchronous pass-thru filter, thus its impact on performance is minimal.

OPTIONS

WebPropertyID

A Web Property ID obtained from Google. It can be specified both globally and per-resource basis.

SEE ALSO

HTML::Parser, Apache2::Filter.

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Lubomir Rintel, <lkundrak@v3.sk>