Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Mojolicious plugin for tracking to Google Analytics on a feature-phone
Perl
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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 %>' />
Something went wrong with that request. Please try again.