We have two routes here:
Do you have a good use case for it? maybe we should ask for users who are interested in the feature and comment...?
+1 for this issue.
We are developing modular web-apps with highly usage of AMD.
It would be awsome to being able to use the piwik-js api as a module,
rather then referencing the global Piwik Object.
It would also make it easier to embed "tracked/tracking/trackable" js-widgets in whitelabel environments.
+1 again ;)
PS: the first route is the one to go :)
In 2eed2eb680ebe191c883bf3cb0dd63a08752efcf: fixes #3352 - expose Piwik as an AMD module (uses the jQuery approach for backward compatibility)