Plack::Middleware::GoogleAnalytics - Middleware to apply Google Anlytics javascript code.
use Plack::Builder; builder { enable "Plack::Middleware::GoogleAnalytics", ga_id => 'UA-214112-11'; $app; };
Plack::Middleware::GoogleAnalytics will insert the standard google analytics Javascript at the end of a text/html document. It places this boilerplate code at the end of the document.
This middleware accepts the following arguments.
This is the id that is supplied by Google. This is a required argument.
Plack, Plack::Middleware, Moo
Logan Bell, <logie@cpan.org>
<logie@cpan.org>
Copyright 2012, Logan Bell
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::Middleware::GoogleAnalytics, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::GoogleAnalytics
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::GoogleAnalytics
For more information on module installation, please visit the detailed CPAN module installation guide.