Opened 20 months ago

Closed 13 months ago

Last modified 13 months ago

#3352 closed New feature (fixed)

Add "Asynchronous Module Definition" (AMD) support (piwik.js)

Reported by: vipsoft Owned by: Anthon Pang
Priority: normal Milestone: 1.12 - The Great 1.x Backlog
Component: Core Keywords:
Cc: Sensitive: no

Change History (8)

comment:1 Changed 20 months ago by vipsoft (robocoder)

  • Summary changed from Add "Asynchronous Module Definition" (AMD) support to Add "Asynchronous Module Definition" (AMD) support (piwik.js)

comment:2 Changed 20 months ago by vipsoft (robocoder)

We have two routes here:

comment:3 Changed 20 months ago by matt (mattab)

Do you have a good use case for it? maybe we should ask for users who are interested in the feature and comment...?

comment:5 Changed 16 months ago by matt (mattab)

  • Milestone changed from 1.x - Piwik 1.x to Feature requests

comment:6 Changed 14 months ago by Alrik

+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 :)

comment:7 Changed 13 months ago by vipsoft (robocoder)

  • Owner set to Anthon Pang
  • Resolution set to fixed
  • Status changed from new to closed

In 2eed2eb680ebe191c883bf3cb0dd63a08752efcf:

fixes #3352 - expose Piwik as an AMD module (uses the jQuery approach for backward compatibility)

comment:8 Changed 13 months ago by vipsoft (robocoder)

  • Milestone changed from Feature requests to 1.12 - The Great 1.x Backlog
Note: See TracTickets for help on using tickets.