Contact Form 7 Google Analytics

Contact Form 7 Google Analytics

Adds Google Analytics Event Tracking to all Contact Form 7 forms sitewide, using “Contact Form” as the Event Category, “Send” as the Event Action, and the form name as the Event Label.

Get the code at the plugin repository, or open issues at the GitHub repository.

Supports the most popular Google Analytics plugins, including the following:


  1. Install and activate the plugin
  2. Enjoy!

Frequently-Asked Questions

Where will events show up?

Check your statistics in Google Analytics under Behavior > Events or under Real-Time > Events

How do I set a goal in Google Analytics?

  1. Click on “Admin” in your Google Analytics account menubar
  2. In the right-most column (“View”), click on “Goals”
  3. Click on the “+ New Goal” button
  4. Choose the “Template” radio button (selected by default) and click “Continue”
  5. Enter a name for the goal (I suggest “Contact Forms”)
  6. Choose the “Event” radio button and click “Continue”
  7. Set “Category Equals to Contact Form”
  8. Set “Action Equals to Sent”
  9. Optionally add a label if you want to define a goal for one specific form
  10. Click the “Save” button



  • Add support for Google Tag Manager


  • Add support for sending the Contact Form 7 form name instead of just the form ID


  • Update suppoprt for gtag.js custom events


  • Add support for the Global Site Tag (gtag.js)


  • Update to use new DOM events in Contact Form 7 v4.8


  • Fix JS issue if ga is undefined


  • Fix PHP undefined index issue


  • Fix issue where any manually-specified items were being deleted


  • Add support for Google Analytics by Yoast


  • First stable version

Leave a Reply

Your email address will not be published. Required fields are marked *