Porting plugins from 1.* to 2.*: checklist, best practices...?

I’ll have to port some custom plugins developed for Piwik 1.* to 2.* version.

for instance, if I copy the old plugin in the /plugins directory, in the plugins list I see a message like “the plugin is not compatible with this version of Piwik”.

I’d like to know if there’s a todo list of typical actions to perform to adapt the old version plugins to the new version as quickly as possible because I’d like to avoid to rewrite the plugins from scratch.


No, there is no todo list you have to change the old version of Piwik.

thanks Barton, that’s exactly what I’m doing: changing from the old to the new version of Piwik, but I also need to use custom plugins built for the previous version of Piwik in the new version.

currently I’m trying to rewrite them from start but it’s not a quick procedure as I thought.

Luca, unfortunately there is no guide to Convert a plugin. But you can generate a new plugin structure, see the documentation at: Setting Up: Develop - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3