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.
Logan Bell, <[email protected]>
Copyright 2012, Logan Bell
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.