Referral Rock

Gravity Forms Referral Program Integration

Capture referral submissions through Gravity Forms on WordPress and automatically register them as referrals in your program.

About Our Gravity Forms Referral Integration

Gravity Forms logo

Gravity Forms

JavaScript Snippet

Capture referral submissions through Gravity Forms on WordPress and automatically register them as referrals in your program.

What it does
Track
Category
Forms
Requirements
  • WordPress site
  • Gravity Forms account
Documentation
View Setup Guide
Data Privacy
When using this integration, it's up to you to comply with applicable laws and regulations, as well as Referral Rock's Terms of Service and Privacy Policy.

What You Can Do with Gravity Forms

Gravity Forms is the go-to form plugin for WordPress, trusted by developers and marketers to build everything from lead capture forms to multi-step applications, complete with conditional logic, file uploads, add-ons for payment and CRM, and configurable Notifications and Confirmations. Referral Rock connects directly to your existing Gravity Forms setup so you can track referrals at the moment a referred visitor submits a form Entry, without rebuilding your forms or changing your WordPress theme. Every Entry Gravity Forms collects can become a verified referral event, attributed to the right referrer and recorded in your program dashboard automatically. It takes minimal development resources to set up, and your existing form logic, Notifications, and add-on integrations all continue to work exactly as before.

Track referred Gravity Forms Entries and attribute each submission to the correct referrer
Forward submitter email addresses from Form Fields to Referral Rock via webhooks or a PHP snippet
Track referrals across any WordPress page or post where a Gravity Form is embedded
Automatically enroll Entry submitters as new referral program members
Trigger rewards the moment a referred Entry meets your program's conversion criteria

How the Gravity Forms Integration Works

1

Add the Referral Rock snippet to your WordPress Confirmation page

After a visitor submits your Gravity Forms form, WordPress displays a Confirmation, which can be a custom page, a redirect, or an inline message. Place Referral Rock's JavaScript tracking snippet on the Confirmation destination so it fires the moment the Entry is recorded. The snippet reads the referral source from the URL and registers the submission as a referral event.

2

Pass the submitter's email from the Entry to Referral Rock

Use a Gravity Forms webhook (via the native Webhooks add-on or a third-party connector) or a lightweight PHP snippet to forward the email address captured in your Form Fields to Referral Rock at the moment of submission. This ties the Entry to a real identity in your referral program so attribution is accurate and rewards can be issued to the right referrer.

3

Referral Rock attributes the Entry to the correct referrer

The moment a referred visitor submits your form, Referral Rock matches the Entry to the referral link they arrived through and credits the referrer. Whether the submitter came from a shared link, a Notification-triggered invite, or a direct referral, every conversion is logged accurately, no manual reconciliation needed.

4

Rewards trigger automatically when a referred Entry qualifies

Once Referral Rock confirms a referred Entry meets your program's conversion criteria, rewards issue automatically. Gift cards, cash, store credit, or any custom incentive you've configured. Your Gravity Forms Notifications and Confirmations continue to fire on their own schedule, and Referral Rock handles the reward side without any extra manual steps.

Track referrals across every Gravity Forms form on your WordPress site

Any form built with Gravity Forms, including contact forms, quote requests, consultation bookings, and lead capture, can become a referral conversion point with Referral Rock connected.

  • Referral attribution is captured when the referred visitor lands on your form page, so it persists through conditional logic paths and multi-page forms without breaking.
  • Every qualified Entry is logged in your Referral Rock dashboard alongside share counts, referral link clicks, and conversion rates, giving you a full picture of program performance.
  • Submitters who arrive organically, without a referral link, can be automatically sent an email invite to join your referral program and start referring their own contacts.

Gravity Forms conditional logic works seamlessly alongside referral tracking

Gravity Forms' conditional logic lets you show or hide fields, change destinations, and control Notifications based on what a user enters, and Referral Rock's tracking survives every branch in that logic.

  • Referral Rock captures the referral source at page load, before any Field interactions, so conditional field rules and skip logic don't interfere with attribution.
  • Hidden Fields in your Gravity Form can carry the referral token silently through every step of a multi-page or branching form without exposing it to submitters.
  • Segment referred Entries by form or by Conditional Logic branch to understand which form experiences drive the most qualified referrals.

Plug into your existing Gravity Forms add-on ecosystem

Gravity Forms' library of official and third-party add-ons connects your forms to CRMs, payment processors, email platforms, and automation tools, and Referral Rock fits into that ecosystem without displacing anything.

  • The Webhooks Add-On (available on Elite and higher Gravity Forms plans) provides a native way to POST Entry data, including the submitter's email, to Referral Rock at submission time.
  • If you're already routing Entries into a CRM or email platform via a Gravity Forms add-on, Referral Rock can sit alongside that workflow, tracking referrals without duplicating your existing automation.
  • WordPress's action/filter system means developers can hook into Gravity Forms' `gform_after_submission` event to forward data to Referral Rock using a small custom snippet instead of a paid add-on.

Close the referral loop from first Entry to reward

Referral Rock manages the entire referral lifecycle, from the moment someone clicks a referral link to the moment the referrer earns their reward, with a Gravity Forms Entry as the conversion event in the middle.

  • Set your conversion trigger to a Gravity Forms submission, a downstream CRM update, or a manual approval, whatever matches how your team qualifies new leads or customers.
  • Rewards issue automatically when a referred Entry is confirmed, with no manual review required for straightforward conversions.
  • Referrers see their progress in real time through the Referral Rock member portal, keeping them motivated to share, while your Gravity Forms Notifications and Confirmations continue to deliver the experience you've already designed.

Gravity Forms Referral Integration — FAQ

The integration uses two components: Referral Rock's JavaScript tracking snippet, placed on the page your Gravity Forms Confirmation redirects to (or on a custom Confirmation page), and a method for forwarding the submitter's email address from the Entry to Referral Rock at submission time. The email can be forwarded using the Gravity Forms Webhooks Add-On, a third-party connector, or a lightweight PHP snippet hooked into `gform_after_submission`. No third-party middleware is required, and setup typically takes minimal developer time. Full step-by-step instructions are in the Gravity Forms integration documentation.
A referral conversion is triggered when a visitor who arrived via a referral link submits a Gravity Forms form. The tracking snippet fires on the Confirmation destination, captures the referral source from the URL, and logs the Entry as a conversion in Referral Rock. You can configure the system to reward immediately on submission, or enable a manual approval step if you need to qualify leads before issuing rewards.
Yes. Because Gravity Forms renders as a standard WordPress shortcode or block that works across themes, and because Referral Rock's tracking snippet is added to the Confirmation page (not the form itself), the integration is theme-agnostic. It works on any WordPress theme, including Divi, Elementor-based themes, block themes, or custom-built, without requiring theme modifications.
Not necessarily. The Webhooks Add-On (included on Gravity Forms Elite plans) is the most straightforward way to POST Entry data including the submitter's email to Referral Rock. However, if you're on a lower Gravity Forms plan, a developer can accomplish the same thing with a small PHP snippet using the `gform_after_submission` hook, no paid add-on required. Both approaches are covered in the integration documentation.
The Gravity Forms integration is available on all Referral Rock plans. Because Gravity Forms requires a paid WordPress plugin license and a self-hosted WordPress site, the integration is best suited for teams that are already operating in the WordPress ecosystem. If you're unsure which Referral Rock plan fits your program, the pricing page has a full feature comparison, and you can book a demo to talk through your setup.
No. Referral Rock captures the referral source when the form page loads, before the visitor has interacted with any Form Fields or triggered any conditional logic rules. This means show/hide field logic, page-break navigation in multi-page forms, and conditional Confirmation redirects don't interfere with referral attribution. As long as the referred visitor reaches and submits the form, the Entry is tracked correctly.
“Their integrations, their obsession to be on the leading edge of their niche, the overall customizability... All in all, I saved thousands by not needing to build an app or sign up for a long-term contract.”

Need help setting up?

Every Referral Rock plan includes dedicated onboarding support. Our team will help you configure the Gravity Forms integration and make sure everything is working perfectly. View the setup guide →

Ready to Connect Gravity Forms?

Start your free trial and set up the integration in minutes. No credit card required.