make sure to always pick the correct siteid and prefer the idsite of the triggered alert
Merge branch 'master' of github.com:piwik/plugin-CustomAlerts