Permalink
Browse files

Prepare CPAN release (3)

  • Loading branch information...
1 parent 80648b0 commit ae0d90579cbf32a734a9d94bf42bd55aa627c01e @Akron committed Dec 1, 2012
Showing with 15 additions and 5 deletions.
  1. +3 −1 Readme.pod
  2. +12 −4 lib/Mojolicious/Plugin/Piwik.pm
View
4 Readme.pod
@@ -25,7 +25,7 @@ Mojolicious::Plugin::Piwik - Use Piwik in Mojolicious
=head1 DESCRIPTION
L<Mojolicious::Plugin::Piwik> is a simple plugin for embedding
-Piwik Analysis in your Mojolicious app.
+L<Piwik|http://piwik.org/> Analysis in your Mojolicious app.
=head1 METHODS
@@ -170,6 +170,8 @@ for example C<idSite> and C<date> (for ranges).
Currently the API requests always expect JSON, so it is not recommended
for the C<ImageGraph> API.
+The plugin is also limited to the Analysis API and lacks support for
+eCommerce tracking.
=head1 TESTING
View
16 lib/Mojolicious/Plugin/Piwik.pm
@@ -7,6 +7,15 @@ use Mojo::UserAgent;
our $VERSION = '0.06';
+# Todo:
+# - Add tracking API support
+# See http://piwik.org/docs/javascript-tracking/
+# - Add eCommerce support
+# http://piwik.org/docs/ecommerce-analytics/
+# - Add ImageGraph API support.
+# - Improve error handling.
+
+
# Register plugin
sub register {
my ($plugin, $mojo, $plugin_param) = @_;
@@ -44,9 +53,6 @@ sub register {
s{(?<!/)$}{/};
};
- # Todo: See http://piwik.org/docs/javascript-tracking/
- # http://piwik.org/docs/ecommerce-analytics/
-
# Create piwik tag
b(<<"SCRIPTTAG")->squish;
<script type="text/javascript">var _paq=_paq||[];(function(){var
@@ -202,7 +208,7 @@ Mojolicious::Plugin::Piwik - Use Piwik in Mojolicious
=head1 DESCRIPTION
L<Mojolicious::Plugin::Piwik> is a simple plugin for embedding
-Piwik Analysis in your Mojolicious app.
+L<Piwik|http://piwik.org/> Analysis in your Mojolicious app.
=head1 METHODS
@@ -347,6 +353,8 @@ for example C<idSite> and C<date> (for ranges).
Currently the API requests always expect JSON, so it is not recommended
for the C<ImageGraph> API.
+The plugin is also limited to the Analysis API and lacks support for
+eCommerce tracking.
=head1 TESTING

0 comments on commit ae0d905

Please sign in to comment.