Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modular architecture for client javascript plus packer/compiler #5502

Closed
anonymous-matomo-user opened this issue Jan 15, 2008 · 4 comments
Closed
Assignees
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

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
Copy link
Member

mattab commented Jul 1, 2008

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

@robocoder
Copy link
Contributor

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
Copy link
Contributor

(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
Copy link
Contributor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

3 participants