🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms SurveySparrow Premium Add-on Setup Guide

Updated 6 min read Gravity Forms Entries & Workflow
On this page
  1. Video walkthrough
  2. What you need
  3. Get your SurveySparrow access token
  4. The settings page
  5. Add a feed to a form
  6. Share a survey (email or SMS)
  7. Custom properties
  8. Conditions
  9. Choosing a channel
  10. What your visitors see
  11. On the entry
  12. Retries are safe
  13. Privacy and security
  14. Troubleshooting

Video walkthrough

Gravity Forms SurveySparrow Add-On Setup Guide: Contacts & Survey Invites (WordPress Side)
Video setup guide: Gravity Forms SurveySparrow Watch on YouTube

The Gravity Forms SurveySparrow Premium Add-on turns each form submission into a SurveySparrow contact and, when you want, an automatic survey invite. It builds the contact from the email, name, mobile number and custom properties you map from your form fields, adds the person to SurveySparrow, and can also share a survey you choose with them by email or SMS. This guide walks through connecting your SurveySparrow account, choosing your data-center region, adding a feed to a form, and understanding exactly what the add-on sends and stores.

What you need

You need Gravity Forms 2.9 or newer, a WordPress site running PHP 7.4 or newer, and a SurveySparrow account. The SurveySparrow REST API is part of a SurveySparrow plan that includes API access — you generate an access token from a private app in your account once your plan includes it. You also need to know which SurveySparrow data-center your account lives in, because the add-on must talk to the matching region host: the US host api.surveysparrow.com or the EU host eu-api.surveysparrow.com. The add-on only ever contacts the SurveySparrow REST API at the region host you choose; it never talks to any other service.

Get your SurveySparrow access token

In SurveySparrow, open Settings, then Apps & Integrations, create a private app, and generate an access token. The REST API requires a plan with API access, so make sure your plan includes it. This token belongs to your account, so treat it like a password. You paste it into the add-on settings once, and from then on it is stored encrypted on your own site.

The settings page

In WordPress go to Forms → Settings → SurveySparrow, activate your GravityExtra license key, then paste your SurveySparrow access token into the token field. The field is a password field, the token is encrypted before it reaches the database, and it is never shown again in clear. Next, choose your data-center region: pick US if your account uses api.surveysparrow.com, or EU if it uses eu-api.surveysparrow.com. Choosing the wrong region will make SurveySparrow reject your token. Use the Test connection button to confirm the token and region work together: it asks SurveySparrow for your surveys and reports success, without adding anyone or sharing a survey.

The SurveySparrow settings page in Gravity Forms: license key, access token, data-center region and a Test connection button
The settings page: your SurveySparrow access token, the data-center region and a Test connection button.

If your site cannot encrypt secrets (the PHP openssl extension is missing), the add-on tells you, and you can instead define the token with the GFSSP_API_KEY constant in wp-config.php (and the region with GFSSP_REGION). When that constant is set, the token field is replaced with a short note and nothing is stored in the database.

Add a feed to a form

Open a form, go to Settings → SurveySparrow, and add a feed. The first choice is what to do: Add the person as a SurveySparrow contact simply stores them in SurveySparrow, or Share a survey with the person also sends them a survey invite. Give the feed a name so you can recognise it later.

The SurveySparrow feed in Gravity Forms: add a contact or share a survey, the survey id and the mapped fields
A feed maps the person’s details and chooses add-contact or share-a-survey.

Map the Contact details from the submission: the email, first and last name, and mobile number. Every field accepts merge tags, so you can pull the email straight from your email field, for example {Email:2}, and the mobile from a phone field. An email is needed for an email invite and to add most contacts; a mobile number is needed for an SMS invite, in international format such as +15551234567.

Share a survey (email or SMS)

When the feed action is Share a survey, two more settings appear. Enter the numeric Survey id of the survey you want to share — you can find it in the survey URL in SurveySparrow — and choose the channel: email or SMS. An email invite needs the email field mapped; an SMS invite needs the mobile field mapped. The add-on posts a survey share for that survey with the contact attached, and SurveySparrow sends the invite.

Custom properties

You can optionally send up to two custom properties with the contact. Give the property name exactly as it is in SurveySparrow and map its value from a form field, for example a property called company with a value of {Company:4}. Custom properties let you segment your contacts and personalise your surveys with data the person already gave you on the form.

Conditions

A conditional-logic rule at the bottom of the feed lets you act only when a rule is met, for example only share a survey when the person opted in, so one form can serve several cases through separate feeds. You can also run several feeds on one form — for instance one feed that always adds the contact, and another that shares a survey only for a certain audience. Each feed is evaluated on its own, so the contact can be added for everyone while the survey invite goes only to the people who match your rule.

Choosing a channel

When you share a survey, pick the channel that fits the field you have. Choose email when you collect an email address, which is the most common case and works for almost any form. Choose SMS when you collect a mobile number and want a higher open rate for a short survey — make sure the number is mapped in international format, with the country code, such as +15551234567. If the field for the chosen channel is empty on a given submission, the add-on leaves a clear note and does not send an invite, so an incomplete submission never produces a broken share.

What your visitors see

Nothing changes for the person filling in the form. They submit as usual and see your normal confirmation. The contact is added and the survey shared quietly in the background, and if the SurveySparrow call ever fails the submission is still saved, so you never lose a lead.

A front-end Gravity Form whose submission adds a SurveySparrow contact and shares a survey
A normal form: the visitor never sees anything about SurveySparrow.

On the entry

Every entry records a note saying what happened, and keeps the SurveySparrow contact id and — when a survey is shared — the share id. Three merge tags, {surveysparrow_contact}, {surveysparrow_share} and {surveysparrow_status}, are available in your Gravity Forms notifications so you can reference the contact and the share in your admin e-mails and workflows.

A Gravity Forms entry screen showing the SurveySparrow note with the contact that was added
The entry note records the contact that was added and any survey that was shared.

Retries are safe

The add-on acts once per entry and never sends a survey invite twice. If you resend a feed, or Gravity Forms retries it, a “done” marker on the entry means nothing is done a second time, and a short per-entry lock stops two simultaneous runs from both acting on the same submission. If a call fails, you can safely resend once the problem is fixed and it will add the contact or share the survey exactly once.

Privacy and security

Your SurveySparrow access token is encrypted at rest with AES-256-GCM and is never shown again, never written to an entry, and never written to a log. The token travels only in the Bearer Authorization header of the request, never in the URL or the request body. The add-on fixes the host to the region host you chose (api.surveysparrow.com or eu-api.surveysparrow.com) over https with certificate verification on, and never follows a redirect, so the token cannot be sent anywhere else. Error messages have the token stripped out before they are shown or stored.

Troubleshooting

If Test connection fails, re-copy the token from SurveySparrow, confirm your plan includes API access, and check that the data-center region matches your account (an EU account will reject the US host and the other way round). If a submission leaves an error note, the note includes the HTTP status from SurveySparrow (for example a 401 for an invalid token or wrong region, a 422 when a required field such as the email is missing, or a 429 if you are rate limited). Fix the cause, then resend the feed from the entry. If you use the constant, remember that it overrides the stored token.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr