Adapted event tracking to the new version of google analytics