Project

General

Profile

track redmine visits via piwik

Added by Tobias Arndt over 12 years ago

Hi everyone,

I would like to track the visits of our redmine installation via the software http://piwik.org/ version 1.6. Right now I'm scratching my head where I should place the mandatory piwik javascript code (http://piwik.org/wp-content/uploads/2008/11/7-javascript-tag1.png ) to get things done.

I already tried to place it under redmine-1.1.1/public/javascripts/application.js but I have to admit I have no background about website programming and javascript at all... It doesn't work this way - May be someone with some deeper knowledge could point me to the right direction ?

Thx

Tobias

Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Edge Rails revision unknown
Application root /opt/redmine-1.1.1
Environment production
Database adapter mysql
Database schema version 20101114115359

About your Redmine plugins
DMSF 1.2.2
Redmine Information Plugin 0.2.4
Graphviz Wiki-macro Plugin 0.2.1
ExpImp 0.5.0
FPM-ExpAttachments 1.0.2


Replies (3)

RE: track redmine visits via piwik - Added by Mischa The Evil over 12 years ago

You might want to take a look at a plugin implementation of Google Analytics integration in Redmine in the form of the Google Analytics Plugin (GitHub repo) which could then be used as a base for building such plugin for Piwik integration.

RE: track redmine visits via piwik - Added by Thomas Capricelli over 11 years ago

There used to be a plugin that still works with redmine 1.2, but once updated to redmine 2.1, I couldn't find anything.

Integrating piwik is just a matter of adding few lines to the main templates. But for those like me who don't know ruby/rails/redmine, it's hard to find. Can someone more in the knowledge of redmine internals give some hint ??

RE: track redmine visits via piwik - Added by Thomas Capricelli about 11 years ago

Ok, the plugin is definitely unmaintained and not functional anymore.

BUT, you can use piwik by adding the tracker code to the file :

app/views/layouts/base.html.erb

I do add it in the <div id="footer">, but you can probably add it somewhere else. You NEED to restart your web application server for this change to be noticed (i use 'thin').

I confirm it works here.

    (1-3/3)