Skip to content

Split piwik.js into multiple files and provide a merged one  #6106

@tsteur

Description

@tsteur

Now that js/piwik.js is getting larger and larger - for instance content tracking added already more than 1000 new lines of code - it would be really nice to split js/piwik.js into multiple files or modules. Would probably also make it easier to write tests for it. I'd have to write and create many tests that rely on DOM but are not related to tracking. Would also make it maybe possible to release some components separately, at least it would give us the possibility.

We could use grunt or something else to merge those files together and to minify/shrink it for a single file piwik.js.

Alternatively, we could also use something based on PHP instead of grunt if we then offer third party plugins to extend the tracker as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementFor new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.c: PlatformFor Matomo platform changes that aren't impacting any of our APIs but improve the core itself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions