https://github.com/halfdan/piwik-ruby-tracking
A Ruby Gem that allows you to add the Piwik Tracking Code to Sinatra, Padrinorb and Rails
https://github.com/halfdan/piwik-ruby-tracking
Last synced: 17 days ago
JSON representation
A Ruby Gem that allows you to add the Piwik Tracking Code to Sinatra, Padrinorb and Rails
- Host: GitHub
- URL: https://github.com/halfdan/piwik-ruby-tracking
- Owner: halfdan
- License: mit
- Created: 2010-12-30T13:51:35.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2021-12-29T19:24:07.000Z (about 4 years ago)
- Last Synced: 2025-07-01T03:07:07.791Z (9 months ago)
- Language: Ruby
- Homepage:
- Size: 53.7 KB
- Stars: 52
- Watchers: 8
- Forks: 33
- Open Issues: 9
-
Metadata Files:
- Readme: README.rdoc
- License: MIT-LICENSE
Awesome Lists containing this project
README
{
}[https://travis-ci.org/halfdan/piwik-ruby-tracking]
= 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', '~> 2.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 :)
= License
Copyright(c) 2010-2017 Fabian Becker, released under MIT license.