Contact Form 7 & Event Tracking with Universal Analytics

By | 2015-05-09T19:32:48+00:00 June 5th, 2013|Traffic/Analytics|

The javascript hook that Contact Form 7 uses to send an event to Google Analytics has changed with the implementation of Universal Analytics: on_sent_ok: "ga(['_trackEvent', 'category', 'action', 'label');" becomes on_sent_ok: "ga('send', 'event', 'category', 'action', 'label');" In my test, the event recorded immediately. Works like a charm. You're welcome, internet.