WWW::GoogleAnalytics::Mobile - PSGI Application of Google Analytics for Mobile
use WWW::GoogleAnalytics::Mobile; my $gam = WWW::GoogleAnalytics::Mobile->new( secret => 'my very secret key', base_url => '/gam', account => 'ACCOUNT ID GOES HERE', ); my $image_url = $gam->image_url($env); # in template <img src="[% image_url %]" /> # server-side use WWW::GoogleAnalytics::Mobile::PSGI; use Plack::Builder; builder { mount "/gam" => WWW::GoogleAnalytics::Mobile::PSGI->new( secret => 'my very secret key', timeout => 4, ); $app; };
WWW::GoogleAnalytics::Mobile makes URI of Google Analytics of Mobile beacon that runs by WWW::GoogleAnalytics::Mobile::PSGI.
Create instance of WWW::GoogleAnalytics::Mobile
Base URL of beacon image.
Secret key of making checksum. Set same secret of WWW::GoogleAnalytics::Mobile::PSGI
Account ID of your Google Analytics ID.
generate beacon image url. $env is PSGI env.
Masahiro Nagano <kazeburo {at} gmail.com>
WWW::GoogleAnalytics::Mobile::PSGI, http://code.google.com/intl/ja/mobile/analytics/
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WWW::GoogleAnalytics::Mobile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::GoogleAnalytics::Mobile
CPAN shell
perl -MCPAN -e shell install WWW::GoogleAnalytics::Mobile
For more information on module installation, please visit the detailed CPAN module installation guide.