addGoal with plugin

I’m trying to develop a plugin that adds some goals when activated, but I can’t find any ‘hooks’ for the event activate. I don’t want addGoal to be called each time a piwik page is laoded, but only when my plugin gets activated.

Any idea how this can be done?

Thanks for the suggestion, it wasn’t possible but definitely should be possible,

I added it it will be in 1.8 final: Add hooks for plugin Enabled and plugin Disabled · Issue #3164 · matomo-org/matomo · GitHub