Merge pull request #538 from hennevogel/master
Implements piwik tracking
This commit is contained in:
commit
5b78666eb8
5 changed files with 73 additions and 32 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,6 +2,7 @@ config/application.rb
|
||||||
config/config.yml
|
config/config.yml
|
||||||
config/secrets.yml
|
config/secrets.yml
|
||||||
config/database.yml
|
config/database.yml
|
||||||
|
config/piwik.yml
|
||||||
/vendor/cache
|
/vendor/cache
|
||||||
/vendor/cache-old
|
/vendor/cache-old
|
||||||
/storage/*
|
/storage/*
|
||||||
|
|
|
||||||
65
Gemfile
65
Gemfile
|
|
@ -1,113 +1,114 @@
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
# Use rails as framework
|
# as web framework
|
||||||
gem 'rails', '~> 4.1'
|
gem 'rails', '~> 4.1'
|
||||||
|
|
||||||
# Use mysql as the database for Active Record
|
# as the database for Active Record
|
||||||
gem 'mysql2'
|
gem 'mysql2'
|
||||||
|
|
||||||
# Use rails-observers for observing records
|
# for observing records
|
||||||
gem 'rails-observers'
|
gem 'rails-observers'
|
||||||
|
|
||||||
# User paper_trail for tracking data changes
|
# for tracking data changes
|
||||||
gem 'paper_trail'
|
gem 'paper_trail'
|
||||||
|
|
||||||
# Use devise as authentification framework
|
# as authentification framework
|
||||||
gem 'devise'
|
gem 'devise'
|
||||||
gem 'devise_ichain_authenticatable'
|
gem 'devise_ichain_authenticatable'
|
||||||
|
|
||||||
# Use omniauth to support openID authentication
|
# to support openID authentication
|
||||||
gem 'omniauth'
|
gem 'omniauth'
|
||||||
gem 'omniauth-facebook'
|
gem 'omniauth-facebook'
|
||||||
gem 'omniauth-openid'
|
gem 'omniauth-openid'
|
||||||
gem 'omniauth-google-oauth2'
|
gem 'omniauth-google-oauth2'
|
||||||
gem 'omniauth-github'
|
gem 'omniauth-github'
|
||||||
|
|
||||||
# Use cancancan as authorization framework
|
# as authorization framework
|
||||||
gem 'cancancan'
|
gem 'cancancan'
|
||||||
# Use rolify to set roles
|
# to set roles
|
||||||
gem 'rolify'
|
gem 'rolify'
|
||||||
|
|
||||||
# Use transitions as state machine
|
# as state machine
|
||||||
gem 'transitions', :require => %w( transitions active_record/transitions )
|
gem 'transitions', :require => %w( transitions active_record/transitions )
|
||||||
|
|
||||||
# Use acts_as_commentable_with_threading for comments
|
# for comments
|
||||||
gem 'awesome_nested_set', '~> 3.0.0.rc.5'
|
gem 'awesome_nested_set', '~> 3.0.0.rc.5'
|
||||||
gem 'acts_as_commentable_with_threading'
|
gem 'acts_as_commentable_with_threading'
|
||||||
|
|
||||||
# Use haml as templating language
|
# as templating language
|
||||||
gem 'haml-rails'
|
gem 'haml-rails'
|
||||||
|
|
||||||
# Use SCSS for stylesheets
|
# for stylesheets
|
||||||
gem 'sass-rails', '>= 4.0.2'
|
gem 'sass-rails', '>= 4.0.2'
|
||||||
|
|
||||||
# Use Uglifier as compressor for JavaScript assets
|
# as compressor for JavaScript assets
|
||||||
gem 'uglifier', '>= 1.3.0'
|
gem 'uglifier', '>= 1.3.0'
|
||||||
|
|
||||||
# Use bootstrap as the front-end framework
|
# as the front-end framework
|
||||||
gem 'bootstrap-sass'
|
gem 'bootstrap-sass'
|
||||||
gem 'formtastic-bootstrap'
|
gem 'formtastic-bootstrap'
|
||||||
gem 'formtastic', '~> 2.3.0.rc3'
|
gem 'formtastic', '~> 2.3.0.rc3'
|
||||||
gem 'momentjs-rails', '>= 2.8.1'
|
gem 'momentjs-rails', '>= 2.8.1'
|
||||||
gem 'bootstrap3-datetimepicker-rails', '~> 3.0.2'
|
gem 'bootstrap3-datetimepicker-rails', '~> 3.0.2'
|
||||||
|
|
||||||
# Use jquery as the JavaScript library
|
# as the JavaScript library
|
||||||
gem 'jquery-rails'
|
gem 'jquery-rails'
|
||||||
gem 'cocoon'
|
gem 'cocoon'
|
||||||
gem 'jquery-datatables-rails', '~> 2.2.1'
|
gem 'jquery-datatables-rails', '~> 2.2.1'
|
||||||
|
|
||||||
# Use gravtastic for user avatars
|
# for user avatars
|
||||||
gem 'gravtastic'
|
gem 'gravtastic'
|
||||||
|
|
||||||
# Use paperclip for upload management
|
# for upload management
|
||||||
gem 'paperclip'
|
gem 'paperclip'
|
||||||
|
|
||||||
# Use prawn as PDF generator
|
# as PDF generator
|
||||||
gem 'prawn_rails'
|
gem 'prawn_rails'
|
||||||
|
|
||||||
# Use axlsx_rails to render XLS spreadsheets
|
# to render XLS spreadsheets
|
||||||
gem 'axlsx_rails'
|
gem 'axlsx_rails'
|
||||||
|
|
||||||
# Use d3js for building our statistics
|
# for charts
|
||||||
gem 'd3_rails'
|
gem 'd3_rails'
|
||||||
gem 'chart-js-rails'
|
gem 'chart-js-rails'
|
||||||
|
|
||||||
# Use a self-hosted errbit with the old notifier
|
# as error catcher
|
||||||
gem 'hoptoad_notifier', '~> 2.3'
|
gem 'hoptoad_notifier', '~> 2.3'
|
||||||
|
|
||||||
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
# to make links faster. Read more: https://github.com/rails/turbolinks
|
||||||
gem 'turbolinks'
|
gem 'turbolinks'
|
||||||
|
|
||||||
# Use active_model_serializers for JSON serializatioin our API
|
# for JSON serialization of our API
|
||||||
gem 'active_model_serializers'
|
gem 'active_model_serializers'
|
||||||
|
|
||||||
# Use FontAwesome for splash themes
|
# for icon fonts
|
||||||
gem 'font-awesome-rails'
|
gem 'font-awesome-rails'
|
||||||
|
|
||||||
#Use Redcarpet for Markdown in description
|
# for Markdown in description
|
||||||
gem 'redcarpet'
|
gem 'redcarpet'
|
||||||
|
|
||||||
# FIXME: We should use http://weblog.rubyonrails.org/2012/3/21/strong-parameters/
|
# FIXME: We should use http://weblog.rubyonrails.org/2012/3/21/strong-parameters/
|
||||||
gem 'protected_attributes'
|
gem 'protected_attributes'
|
||||||
|
|
||||||
# We use this bootstrap/html5 rdoc generator
|
# as rdoc generator
|
||||||
gem 'rdoc-generator-fivefish'
|
gem 'rdoc-generator-fivefish'
|
||||||
|
|
||||||
# We use factory_girl for seeds
|
# for seeds
|
||||||
gem 'factory_girl_rails'
|
gem 'factory_girl_rails'
|
||||||
|
|
||||||
gem 'delayed_job_active_record'
|
# for visitor tracking
|
||||||
# We use ahoy for visitor tracking
|
|
||||||
gem 'ahoy_matey'
|
gem 'ahoy_matey'
|
||||||
gem 'activeuuid'
|
gem 'activeuuid'
|
||||||
|
gem 'piwik_analytics', '~> 1.0.1'
|
||||||
|
|
||||||
# We use whenever for recurring jobs
|
# for recurring jobs
|
||||||
gem 'whenever', :require => false
|
gem 'whenever', :require => false
|
||||||
|
gem 'delayed_job_active_record'
|
||||||
|
|
||||||
# We use daemons to run scripts
|
# to run scripts
|
||||||
gem 'daemons'
|
gem 'daemons'
|
||||||
|
|
||||||
# We use money-rails to encapsulate money in objects
|
# to encapsulate money in objects
|
||||||
gem 'money-rails'
|
gem 'money-rails'
|
||||||
|
|
||||||
# Use guard and spring for testing in development
|
# Use guard and spring for testing in development
|
||||||
|
|
|
||||||
|
|
@ -252,6 +252,10 @@ GEM
|
||||||
slop (~> 3.4, >= 3.4.5)
|
slop (~> 3.4, >= 3.4.5)
|
||||||
pdf-core (0.2.5)
|
pdf-core (0.2.5)
|
||||||
phantomjs (1.9.7.1)
|
phantomjs (1.9.7.1)
|
||||||
|
piwik_analytics (1.0.2)
|
||||||
|
actionpack
|
||||||
|
activesupport
|
||||||
|
rails (>= 3.0.0)
|
||||||
poltergeist (1.5.1)
|
poltergeist (1.5.1)
|
||||||
capybara (~> 2.1)
|
capybara (~> 2.1)
|
||||||
cliver (~> 0.3.1)
|
cliver (~> 0.3.1)
|
||||||
|
|
@ -453,6 +457,7 @@ DEPENDENCIES
|
||||||
paper_trail
|
paper_trail
|
||||||
paperclip
|
paperclip
|
||||||
phantomjs
|
phantomjs
|
||||||
|
piwik_analytics (~> 1.0.1)
|
||||||
poltergeist
|
poltergeist
|
||||||
prawn_rails
|
prawn_rails
|
||||||
protected_attributes
|
protected_attributes
|
||||||
|
|
|
||||||
|
|
@ -44,3 +44,4 @@
|
||||||
You can run, copy, distribute, study, change and improve it.
|
You can run, copy, distribute, study, change and improve it.
|
||||||
The source code and the developers are on
|
The source code and the developers are on
|
||||||
=link_to "github.", "https://github.com/openSUSE/osem"
|
=link_to "github.", "https://github.com/openSUSE/osem"
|
||||||
|
= piwik_tracking_tag
|
||||||
|
|
|
||||||
33
config/piwik.yml.example
Normal file
33
config/piwik.yml.example
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
# Configuration:
|
||||||
|
#
|
||||||
|
# disabled
|
||||||
|
# false if tracking tag should be shown
|
||||||
|
# use_async
|
||||||
|
# Set to true if you want to use asynchronous tracking
|
||||||
|
# url
|
||||||
|
# The url of your piwik instance (e.g. localhost/piwik/
|
||||||
|
# id_site
|
||||||
|
# The id of your website inside Piwik
|
||||||
|
#
|
||||||
|
production:
|
||||||
|
piwik:
|
||||||
|
id_site: 1
|
||||||
|
url: localhost
|
||||||
|
use_async: false
|
||||||
|
disabled: false
|
||||||
|
|
||||||
|
development:
|
||||||
|
piwik:
|
||||||
|
id_site: 1
|
||||||
|
url: localhost
|
||||||
|
disabled: true
|
||||||
|
use_async: false
|
||||||
|
hostname: localhost
|
||||||
|
|
||||||
|
test:
|
||||||
|
piwik:
|
||||||
|
id_site: 1
|
||||||
|
url: localhost
|
||||||
|
disabled: true
|
||||||
|
use_async: false
|
||||||
|
hostname: localhost
|
||||||
Loading…
Add table
Add a link
Reference in a new issue