Cesare Gargano > Dancer2-Plugin-GoogleAnalytics-0.001 > Dancer2::Plugin::GoogleAnalytics

Download:
Dancer2-Plugin-GoogleAnalytics-0.001.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.001   Source   Latest Release: Dancer2-Plugin-GoogleAnalytics-0.002

NAME ^

Dancer2::Plugin::GoogleAnalytics - A Dancer2 plugin to easily add Google Analytics code.

VERSION ^

version 0.001

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"

LICENCE ^

This module is released under the same terms as Perl itself.

AUTHORS ^

This module has been written by Cesare Gargano <garcer at cpan.org>.

SEE ALSO ^

Dancer2 Dancer2::Plugins

AUTHOR ^

Cesare Gargano <garcer@cpan.org>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: