Dancer2::Plugin::GoogleAnalytics - A Dancer2 plugin to easily add Google Analytics code.
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>.
Cesare Gargano <firstname.lastname@example.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.