forked from edavis10/redmine-google-analytics-plugin
-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.rb
22 lines (16 loc) · 711 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'redmine'
require_dependency 'google_analytics_hooks'
Redmine::Plugin.register :google_analytics_plugin do
name 'Google Analytics plugin'
author 'Eric Davis & Raphael Kallensee'
description 'Redmine plugin to insert a Google Analytics (or e.g. Piwik) tracking code into Redmine based on user roles.'
url 'https://github.com/rkallensee/redmine-google-analytics-plugin'
version '0.4.0'
requires_redmine :version_or_higher => '2.0.0'
settings :default => {
'google_analytics_code' => '',
'google_analytics_log_anonymous' => true,
'google_analytics_log_authenticated' => true,
'google_analytics_log_administrator' => true
}, :partial => 'google_analytics_settings'
end