Contact Form 7 Google Analytics

Description

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.

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

Installation

  1. Install the plugin
  2. Check your statistics in Google Analytics under Behavior > Events or under Real-Time > Events
  3. Optionally, to set up a goal, follow these steps:
    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 Send”
    9. Optionally add a label if you want to define a goal for one specific form
    10. Click the “Save” button

FAQ

Installation Instructions
  1. Install the plugin
  2. Check your statistics in Google Analytics under Behavior > Events or under Real-Time > Events
  3. Optionally, to set up a goal, follow these steps:
    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 Send”
    9. Optionally add a label if you want to define a goal for one specific form
    10. Click the “Save” button

Reviews

Working fine

The plugin dispatch custom events for CF7 forms, working perfectly.

But would be nice to customize the events.

SOLVED: Yoast SEO vs Contact form 7 No success message

I’m using both Yoast SEO & Contact Form 7.

This was giving me a conflict resulting in not displaying the success message. gaTracker didn’t work, and is being depricated by the end of 2017. And I couldn’t et the suggested DOM process to work.

Then finally bumped into this plugin and POW! Worked immediately.

Don’t forget to remove Contact Form 7 additional settings.

Check it out working on my website

Read all 5 reviews

Contributors & Developers

“Contact Form 7 Google Analytics” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.5.0

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

1.4.1

  • Update suppoprt for gtag.js custom events

1.4.0

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

1.3.0

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

1.2.2

  • Fix JS issue if ga is undefined

1.2.1

  • Fix PHP undefined index issue

1.2

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

1.1

  • Add support for Google Analytics by Yoast

1.0

  • First stable version