Linux 软件免费装
Banner图

SheetSync for CF7

开发者 renovasrls
更新时间 2026年12月4日 00:19
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

leads contact form 7 cf7 spreadsheet google sheets

下载

1.4.4

详情介绍:

SheetSync for CF7 appends every Contact Form 7 submission as a new row of a Google Sheet, in real time. It follows a Bring Your Own Key model: you create a free Google Service Account in your own Google Cloud project and paste its JSON key in WordPress. No third-party server sits between your site and Google, and no credential is bundled with the plugin. Features

安装:

  1. Install and activate Contact Form 7.
  2. Upload the sheetsync-cf7 folder to /wp-content/plugins/ (or upload the zip from Plugins → Add New → Upload Plugin) and activate it.
  3. Go to Contact → SheetSync for CF7 and follow the quick start guide to create a Service Account and upload its JSON key.
  4. Share your Google Sheet with the Service Account email as Editor.
  5. Edit a form, open the Google Sheets tab, enable it, enter the Spreadsheet ID and the tab name, save the form, click Sync headers, then Load columns from the sheet to set the column mapping, and save the form again.

屏幕截图:

  • The "Google Sheets" tab of a Contact Form 7 form: spreadsheet, extra and lead source columns, pipes, fields not to send and column mapping.
  • Dashboard: submissions per day, totals, filters and searchable list of the entries.
  • Entry inspector: submitted data and the row written in the sheet.
  • Settings: Google Service Account connection and date and time format.
  • Settings: local archive, automatic retry and email alerts.
  • Settings: lead source tracking with customizable channel names.
  • Connected forms: every form sending to Google Sheets, with its spreadsheet and tab.

常见问题:

Do I need a paid Google Cloud account?

No. The Google Sheets API is free within Google's usage quotas and does not require a billing account.

Where is the data sent?

Only to Google (oauth2.googleapis.com and sheets.googleapis.com), directly from your server, into the spreadsheet you choose. A copy is also kept in your WordPress database if the entries archive is enabled.

I get "Access denied"

Open the spreadsheet, click Share and add the Service Account email (shown in Contact → SheetSync for CF7) as Editor.

I added a field to my form

Save the form and click "Sync headers" again.

I deleted a column from the sheet: will it come back?

No. Columns are only added when you click "Sync headers" (or automatically when row 1 is completely empty). To stop sending a field, tick it in "Fields not to send".

Dates are written as text in my sheet

Google Sheets converts a value into a date only when it matches the locale of the spreadsheet (File → Settings → Locale). Choose the matching format in Contact → SheetSync for CF7 → Date and time format: 11/03/2026 for Italy, 03/11/2026 for the United States, or 2026-03-11, which works everywhere.

My select uses pipes (Label|value): which one is written?

By default the value after the "|", as in the Contact Form 7 emails. In the Google Sheets tab of the form you can choose the label or both ("Label | Value").

How do I write a fixed value, like the lead source?

In the "Column mapping" section choose "Custom text…" for that column and type the value. Mail-tags such as [your-name] or [_post_title] are replaced with the submission data.

A submission did not arrive in the sheet

Open the Dashboard tab: the entry shows the error and a "Send to Google Sheets again" button. With WP_DEBUG_LOG enabled, errors are also written to wp-content/debug.log with the prefix [SheetSync for CF7].

Will I know if a submission does not reach the sheet?

Yes. By default you get an email (to the site admin email or the recipients you choose) when a submission fails, and the plugin retries it automatically about once an hour with increasing intervals. You are emailed again only if the last attempt fails too. The retries use WP-Cron: if your host disables it (DISABLE_WP_CRON), set up a server cron job that calls wp-cron.php.

How does the lead source tracking work?

When enabled (Contact → SheetSync for CF7 → Settings), a small script reads the UTM parameters and the ad click IDs of the page where the visitor lands, keeps them in the browser's localStorage (key ss_cf7_attribution, for the chosen number of days; only with marketing consent if you enable the WP Consent API option) and sends them with the form. With Google Ads auto-tagging the gclid is enough to classify the lead as "Google Ads". The landing page and the referrer are stored without their query string.

Does it work if the WordPress security keys change?

The stored key is encrypted with your WordPress salts. If they change, the plugin asks you to upload the JSON key again.

更新日志:

1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0