Adds custom event handling to Piwik Tracker.

Change-Id: I038be238c17f7e137a7d39c911100d99a1f3ec7e