Track Contact Form 7 Submissions using Google Analytics

In additional settings field of Contact From 7 admin:

on_sent_ok: "_gaq.push(['_trackEvent', 'Contact Form', 'Submit']);"

Google Analytics will track it as an event with Contact Form as the Category, and Submit as the Action.

In Google Analytics go to Content > Events > Overview

2 Comments

  1. Kevin on December 7, 2013 at 12:41 pm

    I’ve added this to one of my forms, but I do not see any feedback in my GA account for some reason. Do I need to configures something on the GA account for this to link it together?

    • babbler on December 8, 2013 at 7:58 pm

      Have you got Google Analytics set up on your site already?
      I use Google Analytics for WordPress by Joost.
      Have you looked up the data under Content >> Events >> Overview in your GA account?

      It has worked fine for me right out of the box but it did take a couple of days for the data to appear.

Leave a Comment