Linux 软件免费装
Banner图

Contact Form 7 Google Analytics

开发者 macbookandrew
更新时间 2023年2月19日 06:34
捐献地址: 去捐款
PHP版本: 4.3 及以上
WordPress版本: 6.0.0
版权: GPL2

标签

tracking form forms analytics contact form google analytics track event events contact form 7 cf7 contactform7 universal goals ga goal

下载

1.2 1.2.1 1.2.2 1.8.9 1.7.1 1.7.3 1.7.4 1.7.5 1.1 1.3.0 1.4.0 1.5.0 1.6.1 1.7.0 1.7.2 1.8.0 1.8.1 1.8.2 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.3

详情介绍:

Adds Google Analytics Event Tracking to all Contact Form 7 forms sitewide, using “Contact Form” as the Event Category, the Contact Form 7 event as the Event Action, and the form name as the Event Label. Supports the most popular Google Analytics plugins, including the following:

安装:

  1. Install and activate the plugin
  2. Enable the actions you would like to send (if you skip this step, it will send all available actions).
  3. Enjoy!

常见问题:

What about GDPR (General Data Protection Regulation)?

This plugin does not collect or send any personal information or form submissions to Google Analytics. The only form-related information sent is the name of the form and the submission result (invalid, spam, mail sent, mail failed, and sent). Google Analytics does collect more information including, but not limited to, the following:

  • Page name, URL, and language
  • Screen and window size
  • The user’s IP address
For more information, refer to Google’s compliance information. Please also note that Contact Form 7 and other plugins may collect, process, or store user data.

Where will events show up?

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

What events will be shown?

This depends on the settings you choose.

  • Invalid - Fires when an Ajax form submission has completed successfully, but mail hasn’t been sent because there are fields with invalid input.
  • Spam - Fires when an Ajax form submission has completed successfully, but mail hasn’t been sent because a possible spam activity has been detected.
  • Mail Sent - Fires when an Ajax form submission has completed successfully, and mail has been sent.
  • Mail Failed - Fires when an Ajax form submission has completed successfully, but it has failed in sending mail.
  • Sent - Fires when an Ajax form submission has completed successfully, regardless of other incidents.
  • This is the only event available if you have Contact Form 7 version 4.7 or earlier.
  • This is the only original event sent by this plugin. I recommend enabling the other four and disabling this event, unless you need it for old goals you had set up from several years ago.

How do I set a goal in Google Analytics?

Note: these instructions are provided for reference and may become out of date if Google Analytics changes their feature set or labels.

  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. Set the Goal description
  5. Enter a name for the goal (I suggest “Contact Forms”)
  6. Choose the “Event” radio button and click “Continue”
  7. Set the Goal details
  8. Set the “Category Equals to” field to “Contact Form 7”
  9. Set the “Action Equals to” field to the event you wish to track (see above for a list of events)
  10. If you want to define goals for specific form, enter the name of your form in the “Label” field
  11. Click the “Save” button

How do I use this with Google Tag Manager (gtm.js)?

  1. In your Google Tag Manager workspace, add a new Trigger.
  2. Choose trigger type: “Other/Custom Event”
  3. Set “Event name” to “Contact Form 7”
  4. Set “This trigger fires on” to “Some Custom Events”
  5. Set the dropdowns to “Event contains Contact Form 7”
  6. Save the trigger
  7. In your Google Tag Manager workspace, add a new Tag.
  8. Choose tag type: “Universal Analytics”
  9. Change “Track Type” to “Event”
  10. Set “Category” to “Contact Form 7”
  11. Set “Label” to “{{Event}}”
  12. Click in the “Triggering” box and choose the trigger you set up above.
  13. Save and publish your changes.

更新日志:

1.8.8 1.8.7 1.8.6 1.8.5 1.8.4 1.8.3 1.8.2 1.8.1 1.8.0 1.7.5 1.7.4 1.7.3 1.7.2 1.7.1 1.7.0 1.6.1 1.6.0 1.5.0 1.4.1 1.4.0 1.3.0 1.2.2 1.2.1 1.2 1.1 1.0