Apache2::Filter::GoogleAnalytics - Add GA code to served HTML document
PerlLoadModule Apache2::Filter::GoogleAnalytics <Location /to-analyze> WebPropertyID UA-80868086-2 PerlOutputFilterHandler Apache2::Filter::GoogleAnalytics </Location>
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.
A Web Property ID obtained from Google. It can be specified both globally and per-resource basis.
HTML::Parser, Apache2::Filter.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Lubomir Rintel, <lkundrak@v3.sk>
<lkundrak@v3.sk>
To install Apache2::Filter::GoogleAnalytics, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::Filter::GoogleAnalytics
CPAN shell
perl -MCPAN -e shell install Apache2::Filter::GoogleAnalytics
For more information on module installation, please visit the detailed CPAN module installation guide.