NAME
Mojolicious::Plugin::GoogleAnalytics - Mojolicious Plugin
SYNOPSIS
# Mojolicious
$self->plugin('GoogleAnalytics');
# Mojolicious::Lite
plugin 'GoogleAnalytics';
# In your layout template
<%= analytics 'UA-32432-1' %>
</body> <!-- Make sure its just before closing body tag -->
DESCRIPTION
Mojolicious::Plugin::GoogleAnalytics is a Mojolicious plugin. Inserts Google Analytics code and associates your analytics id.
METHODS
Mojolicious::Plugin::GoogleAnalytics inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register(Mojolicious->new);
Register plugin in Mojolicious application.