@anonymous-piwik-user opened this issue on January 15th 2008

There should be the ability to add modules in the client javascript. It would make the piwik.js much easier to maintain and extend.

The client modules would be things such as:

Outbound link tracking

Click tracking for heatmaps

Displaying information in the pages being tracked

The modules will be able to hook in various points during execution:

'run' - as soon the script is run

'load' - as soon the DOM is loaded

'log' - when an action is logged

'unload' - when script is unloaded

About the packer/compiler:

There should be a php script that takes the base piwik js along with any js modules and joins/packs/minifies them in one file.

@mattab commented on July 1st 2008

Fixing as wontfix as Eli-d didnt continue the task. If someone interested, please reopen :)

@robocoder commented on May 20th 2009

Implementing the hook points for the unit testing module.

There are other tickets for merging & minifying javascript. We'll YUI compress piwik.js for the upcoming release.

@robocoder commented on May 28th 2009

(In [1151]) fixes #5775 - OO version of piwik.js which no longer modifies DOM; remove misc/testJavascripTracker (interactive tests); add tests/javascript (QUnit unit tests); fixes #661 - use click event instead of mousedown; fixes #549 - define your own download/outlink tracking classes; fixes #5502 - add hook interface for module

@robocoder commented on May 28th 2009

Minor changes from Eli-D's spec: - 'run' called when the Tracker is instantiated - added 'click' hook; called by the click handler (and piwik_track() / trackLink())

This issue was closed on August 31st 2010
Powered by GitHub Issue Mirror