A Ruby on Rails 3.x plugin that embeds the Piwik tracking code into the application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bèr Kessels 2bd9278639 Merge branch 'release/1.1.0' 6 years ago
app/views/piwik_analytics adding possibility to log userId 6 years ago
lib adding possibility to log userId 6 years ago
spec Add tests for user_id. 6 years ago
Gemfile add debugger only in bundler for... debugging! 8 years ago
Gemfile.lock Bump version. 6 years ago
MIT-LICENSE Initial plugin commit. 10 years ago
README.rdoc Make use_async false by default 9 years ago
Rakefile Rake spec as default task 8 years ago
init.rb Change Rakefile 9 years ago
piwik_analytics.gemspec Bump version. 6 years ago

README.rdoc

= PiwikAnalytics

**Note:** This Gem has undergone a major rewrite in 1.x compared to 0.9.x.

The piwik_analytics gem provides an easy way to include Piwik into your application.
By default it will output the synchronous piwik tracking code for every page
(given that it is configured correctly).

== Installation

Add `piwik_analytics` to Gemfile:

gem 'piwik_analytics', '~> 1.0.0'

Run the generator:

rails g piwik_analytics:install

This will install a piwik.yml configuration file into the `config` directory
of your application.


== Configuration

Open up `config/piwik.yml` and edit the settings. Each setting is described in
the config file itself.

== Usage

Inside your `application.html.erb` (or haml, slim) simply add

<%= piwik_tracking_tag %>

Enjoy :)


= Licence
Copyright(c) 2010-2012 Fabian Becker, released under MIT licence.