NAME
Dancer2::Plugin::GoogleAnalytics - A Dancer2 plugin to easily add Google Analytics code.
VERSION
version 0.002
DESCRIPTION
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.
SYNOPSYS
lib/Dancer.pm:
package Dancer;
use Dancer2;
use Dancer2::Plugin::GoogleAnalytics;
config.yml:
plugins:
GoogleAnalytics:
account: "UA-XXXXX-X"
SEE ALSO
AUTHOR
Cesare Gargano <garcer@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 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.