Mojolicious plugin for tracking to Google Analytics on a feature-phone
Perl
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Mojolicious/Plugin
.gitignore
Makefile.PL
README.md

README.md

GATracker

Mojolicious plugin for tracking to Google Analytics on a feature-phone

USAGE:

  1. Register plugin:

    $self->plugin('GATracker', GA_ACCOUNT => 'MO-xxxxxxx-x');

  2. Add gif to template

#!/usr/bin/perl
use strict;
use warnings;
use Mojolicious::Lite;
use lib 'lib';
plugin 'GATracker';
get '/' => sub {
    my $self = shift;
    $self->render('index');
};
app->start;
__DATA__
@@ index.html.ep
<img src='<%= $self->GATracking_URL %>' />