[Piwik-trac] [Piwik] #82: Modular architecture for client javascript plus packer/compiler

Piwik trac at piwik.org
Mon Mar 10 11:43:23 CET 2008


#82: Modular architecture for client javascript plus packer/compiler
--------------------------+-------------------------------------------------
  Reporter:  Eli-D        |       Owner:  Eli-D          
      Type:  New feature  |      Status:  new            
  Priority:  normal       |   Milestone:  Future features
 Component:  Core         |     Version:                 
Resolution:               |    Keywords:  javascript     
--------------------------+-------------------------------------------------
Old description:

> 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.

New description:

 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.

-- 
Ticket URL: <http://dev.piwik.org/trac/ticket/82#comment:1>
Piwik <http://piwik.org>
Piwik, open source web analytics software


More information about the Piwik-trac mailing list