Dancer2::Plugin::GoogleAnalytics - A Dancer2 plugin to easily add Google Analytics code.
version 0.001
This Dancer2 plugin adds Google Analytics code to your html. It places the script tag containing Google Analytics code automatically before the ending html head tag. If you want to control where to place the html script tag set auto: false in Dancer2 config.yml and use the token analytics in your template.
lib/Dancer.pm: package Dancer; use Dancer2; use Dancer2::Plugin::GoogleAnalytics; config.yml: plugins: GoogleAnalytics: account: "UA-XXXXX-X"
This module is released under the same terms as Perl itself.
This module has been written by Cesare Gargano <garcer at cpan.org>.
<garcer at cpan.org>
Dancer2 Dancer2::Plugins
Cesare Gargano <garcer@cpan.org>
This software is copyright (c) 2013 by Cesare Gargano.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dancer2::Plugin::GoogleAnalytics, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Plugin::GoogleAnalytics
CPAN shell
perl -MCPAN -e shell install Dancer2::Plugin::GoogleAnalytics
For more information on module installation, please visit the detailed CPAN module installation guide.