Search code examples
wordpressgoogle-analyticscontact-formcontact-form-7goal-tracking

Goal tracking with contact form 7 in WordPress


I am trying to set up goal tracking on contact form submissions in WordPress with Contact Form 7 Plugin.

I've got Universal Tracking all set-up and I've added the following to the additional section on the contact form in question:

on_sent_ok: "ga('send', 'event', 'Contact Form', 'sent');"

I've then gone in Analytics and made a goal to track the event of submission however after testing the form and verifying Analytics doesn't seem to pick up on the results.

Am I missing something here?

Any advice is greatly appreciated, thanks!


Solution

  • Have you checked in the Real-Time reports to see if you can see your event hits? You would have to check within 30 minutes of triggering your event though because RT reports only has a 30 minute "memory".