public
Description: Redmine plugin to insert the Google Analytics tracking code into Redmine based on user roles.
Homepage: https://projects.littlestreamsoftware.com/projects/show/redmine-analytics
Clone URL: git://github.com/edavis10/redmine-google-analytics-plugin.git
edavis10 (author)
Tue Mar 31 17:53:43 -0700 2009
commit  cbddbffeafd2e190b50ebfaeee7a190ac4cbf596
tree    dbbceb701e84e66e5d0a1cb3686f718696a3cb3a
parent  5fb85e39c1b3079af8a78a1d2f2a98b1fdbd01a4
100644 26 lines (17 sloc) 0.752 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'redmine'
 
require_dependency 'google_analytics_hooks'
 
Redmine::Plugin.register :google_analytics_plugin do
  name 'Google Analytics plugin'
  author 'Eric Davis'
  description 'Redmine plugin to insert the Google Analytics tracking code into Redmine based on user roles.'
  url 'https://projects.littlestreamsoftware.com/projects/redmine-analytics'
  author_url 'http://www.littlestreamsoftware.com'
  
  version '0.2.0'
  
  requires_redmine :version_or_higher => '0.8.0'
  
  settings :default => {
    'google_analytics_code' => '',
    'google_analytics_log_anonymous' => true,
    'google_analytics_log_authenticated' => true,
    'google_analytics_log_administrator' => true
  }, :partial => 'settings/google_analytics_settings'
 
 
end