def METHOD_NAME(self, sender, event, **kwargs):
    if not event.can_manage(session.user) or not PiwikPlugin.settings.get('site_id_events'):
        return
    return SideMenuItem('statistics', _("Statistics"), url_for_plugin('piwik.view', event), section='reports')