Skip to content

Piwik Integration in Rails 3 & 4 and compliant with the french laws and the CNIL requests.

License

Notifications You must be signed in to change notification settings

afriqs/piwik_analytics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

!! WORK IN PROGRESS !!

PiwikAnalytics

Note: Original Gem from Fabian Becker. This is a fork of piwik_analytics version 1.0.2, because the outdated javascript. It seams the orginal Github Repo is vanished and not more accessable.

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

This another fork takes into accounts the french legislation and is compliant with the CNIL requests

Installation

Add piwik_analytics to Gemfile:

gem 'piwik_analytics', :git => 'https://github.com/afriqs/piwik_analytics.git'

Run bundle install and after this 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

Released under MIT licence.

About

Piwik Integration in Rails 3 & 4 and compliant with the french laws and the CNIL requests.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%