CF7 Google Sheets Connector

Description

This plugin is a bridge between your WordPress Contact Form 7 forms and Google Sheets.

When a visitor submits his/her data on your website via a Contact Form 7 form, upon form submission, such data are also sent to Google Sheets.

How to Use this Plugin

In Google Sheets
* Log into your Google Account and visit Google Sheets.
* Create a new Sheet and name it.
* Rename the tab on which you want to capture the data.

In WordPress Admin
* Create or Edit the Contact Form 7 form from which you want to capture the data. Set up the form as usual in the Form and Mail etc tabs. Thereafter, go to the new “Google Sheets” tab.
* On the “Google Sheets” tab, copy-paste the Google Sheets sheet name and tab name into respective positions, and hit “Save”.

In Google Sheets
* In the Google sheets tab, provide column names in row 1. The first column should be “date”. For each further column, copy paste mail tags from the Contact Form 7 form (e.g. “your-name”, “your-email”, “your-subject”, “your-message”, etc).
* Test your form submit and verify that the data shows up in your Google Sheet.

Important Notes

  • You must pay very careful attention to your naming. This plugin will have unpredictable results if names and spellings do not match between your Google Sheets and form settings.

Screenshots

  • Installation step 3 - Google Sheets Connect Page.
  • Edit form - Google Sheets tab.
  • Google Sheet with special mail tags

Installation

  1. Upload cf7-google-sheets-connector to the /wp-content/plugins/ directory, OR Site Admin > Plugins > New > Search > CF7 Google Sheets Connector > Install.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Use the Admin Panel > Contact form 7 > Google Sheets screen to connect to Google Sheets by entering the Access Code. You can get the Access Code by clicking the “Get Code” button.
    Enjoy!

FAQ

Installation Instructions
  1. Upload cf7-google-sheets-connector to the /wp-content/plugins/ directory, OR Site Admin > Plugins > New > Search > CF7 Google Sheets Connector > Install.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Use the Admin Panel > Contact form 7 > Google Sheets screen to connect to Google Sheets by entering the Access Code. You can get the Access Code by clicking the “Get Code” button.
    Enjoy!
Why isn’t the data send to spreadsheet? CF7 Submit is just Spinning.

Sometimes it can take a while of spinning before it goes through. But if the entries never show up in your Sheet then one of these things might be the reason:

  1. Wrong access code ( Check debug log )
  2. Wrong Sheet name or tab name
  3. Wrong Column name mapping ( Column names are the contact form mail-tags. It cannot have underscore or any special characters )

Please double-check those items and hopefully getting them right will fix the issue.

How do I get the Google Access Code required in step 3 of Installation?
  • On the Admin Panel > Contact form 7 > Google Sheets screen, click the “Get Code” button.
  • In a popup Google will ask you to authorize the plugin to connect to your Google Sheets. Authorize it – you may have to log in to your Google account if you aren’t already logged in.
  • On the next screen, you should receive the Access Code. Copy it.
  • Now you can paste this code back on the Admin Panel > Contact form 7 > Google Sheets screen.

Reviews

Works perfectly!

5-Star rating for the plugin and quick response.

See my support post for help with a specific column not copying over.

Everything works perfectly.

Important notes for plugin settings

Awesome! Thanks! But…

1. If your Google Sheet has title with space (e.g. “my sheet”) plugin doesn’t send data and you get error saving secret key.

2. CF7 tags should be with “-” (e.g. your-name or u-name) but without “_” (e.g. your_name).

With this points plugin works for me

Had it up and running in 5 minutes

I installed and had this plugin up and running in 5 minutes. I just followed the quick tutorial on Youtube. I installed the plugin, created an access token, made a Google Sheets file, added the form fields, saved it all and tested it out. Everything went as planned and works as described. Nice and simple, content from CF7 populates into a Google Form.

Didn’t save Google Access Code

I wait about 3 weeks for support: https://wordpress.org/support/topic/didnt-save-google-access-code/

No support, and didn’t work Well what can I say…

Read all 31 reviews

Contributors & Developers

“CF7 Google Sheets Connector” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

2.0 ( 11/06/2018 )

  • Fixed – Bypassing of CF7 built-in data validation.

1.9

  • Fixed – Not fetching contact form data to google sheet.

1.8

  • Fixed the hijacking( loading issue front-end form ) of page after submit actions.
  • Integrated New Special Mail Tags ( including flamingo serial number ) with Spread Sheet without (_) underscores(Refer screenshot).

1.7 (26/08/2017)

  • Integrated Special Mail Tags with Spread Sheet without (_)underscores(Refer screenshot).
  • Fixed Date Format as per wordpress standards.

1.6

  • Updated Google Spread Sheet Library
  • Changed classes name for PHP Google Auth library.
  • Delete all data on uninstallation of plugin.

1.5

  • Fixed more class names due to conflict with other plugins.
  • Fixed issue to send hidden fields via dynamic text extension.
  • Added settings link on activation of plugin.

1.4

  • Fixed 500 Internal Server Error if sheet name or tab name is not set.

1.3

  • Added .pot file for easier translation.

1.2

  • Updated plugin description etc.

1.1

  • Fixed date format and display issues related to non-English dates.
  • Fixed the class name due to conflict with other plugins.

1.0

  • First public release
  • Integrated Contact form 7 with Google sheets.