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

Gravity Forms Server-side Ad Conversions Premium Add-on Setup Guide

Updated 8 min read Gravity Forms Analytics & Ad Tracking
On this page
  1. Step 1: Install and Activate Your License
  2. General settings
  3. Step 2: Add Each Platform’s Credentials
  4. Step 3: Create a Feed for Your Form
  5. Step 4: Map Customer Data, Value and Consent
  6. Step 5: Send a Test Conversion
  7. How It Works
  8. Limits and What Is Not Included in Version 1.0
  9. Developer Hooks
  10. Troubleshooting & FAQ
  11. The entry says the conversion was not sent because consent was not given.
  12. The entry says there is nothing to match the conversion.
  13. Google sign-in failed.
  14. LinkedIn stopped working after a few weeks.
  15. Can I see what was sent?
  16. Resource Hub

Ad blockers, browser privacy features and cookie banners often stop the browser tag from reporting a form lead to your ad platform. The Gravity Forms Server-side Ad Conversions Premium Add-on sends the conversion from your own server right after the entry is saved, together with the ad click ID the visitor arrived with and SHA-256 hashed contact details for matching. It supports Google Ads, LinkedIn, TikTok and Microsoft Advertising.

This guide covers credentials, feeds, customer data, consent, testing, limits and troubleshooting. For Meta (Facebook and Instagram), use the separate GravityExtra Facebook Conversion add-on; both can run on the same site.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher
  • Gravity Forms: Version 2.7 or higher
  • Ad platform access: Admin access to the ad account, plus API access you create yourself (a Google Cloud OAuth client, a LinkedIn developer app, a TikTok Events API token or a Microsoft UET Conversions API token)
  • GravityExtra license: The add-on installed, activated and licensed with an active GravityExtra license key

Step 1: Install and Activate Your License

  1. In WordPress go to Plugins → Add New → Upload Plugin, upload the add-on ZIP file and click Activate.
  2. Go to Forms → Settings → Ad Conversions and activate your license key in the Gravity Extra License section.
  3. Review the General section (below), then fill in only the platforms you advertise on.

General settings

  • Consent: Assume consent when a feed has no consent field mapped is off by default, so nothing is sent from a feed without a consent field.
  • Default phone country code: digits only, for example 1 for US/Canada or 44 for the UK. Used for numbers typed without a + country code. Leave it empty to send only phone numbers that include a country code.
  • Click ID capture: Capture click IDs on every page (recommended) stores gclid, gbraid, wbraid, li_fat_id, ttclid and msclkid from the landing page URL in first-party cookies, so they are still known when the visitor submits a form on another page. No third-party scripts are loaded.
  • Keep click IDs for (days): how long the cookies last (default 90).

Your credentials are encrypted

Tokens and secrets are stored encrypted and are never shown again after saving, logged or emailed. To change one, paste the new value and save.

Step 2: Add Each Platform’s Credentials

Platform What you create Fields to fill in
Google Ads (Data Manager API, no developer token) A Google Cloud project with the Data Manager API enabled, an OAuth consent screen with the Data Manager API scope (published, not left in Testing), an OAuth client (Desktop app) and a refresh token from a Google account that can access the Ads account. In Google Ads, a conversion action with the source Import from clicks. OAuth client ID, OAuth client secret, Refresh token, Google Ads customer ID (123-456-7890), Manager account ID (optional)
LinkedIn (Conversions API) A LinkedIn developer app with Conversions API access (scopes rw_conversions and r_ads), a member access token generated by a user with the Campaign Manager role or higher, and a conversion rule using the Conversions API method. Access token, API version, optional Refresh token, Client ID and Client secret for automatic renewal
TikTok (Events API) In TikTok Events Manager, open your web pixel, go to Settings and generate an Events API access token. Access token, Pixel code
Microsoft Advertising (UET Conversions API) In Microsoft Advertising, Tools → UET tag, edit your tag, choose Use Conversions API and copy the token. Create a conversion goal of type Custom event. UET tag ID, Conversions API token

TikTok and Microsoft Advertising: confirm API access first

Make sure your TikTok and Microsoft Advertising accounts have access to their conversions APIs (some Microsoft Advertising accounts may not see the Use Conversions API option yet), then check the first results in each platform’s test events or diagnostics screens before relying on them. No ad platform guarantees how many conversions it can match.

Step 3: Create a Feed for Your Form

Open the form, go to Settings → Ad Conversions and click Add New. Each feed sends to one platform, so add one feed per platform (or per conversion action) you want this form to report to.

Ad Conversions Feeds list with active Google Ads, LinkedIn, TikTok and Microsoft Advertising feeds
One form reporting to four platforms, one feed each.

Enter a Feed Name and choose the Platform. Platforms you have not set up yet are marked (not set up yet). The platform section then asks for:

  • Google Ads: Conversion action ID, the number after ctId= when you open the conversion action in Google Ads. Tick The consent also covers ad personalization only if your consent text covers personalised advertising.
  • LinkedIn: Conversion rule ID, the number after /conversions/ in Campaign Manager.
  • TikTok: the Event from the list, or Custom event name… with your own name, plus an optional Test event code used only by the test button.
  • Microsoft Advertising: Event name (Action), which must match the Action of your Custom event conversion goal, and an optional Event category.
Ad Conversion feed with feed name, Google Ads platform, conversion action ID and ad personalization checkbox
A Google Ads feed with its conversion action ID.

In Customer Data, map the fields you have: Email, Phone, First Name, Last Name, Country, ZIP / Postal Code, Company (LinkedIn) and Job Title (LinkedIn). Email, phone and names are normalised the way each platform asks and SHA-256 hashed on your server before they are sent. Each platform only receives the details it supports.

Customer Data field map with Email, Phone, First Name, Last Name, Country, ZIP / Postal Code, Company and Job Title mapped to form fields
More mapped details give the platform more ways to match the lead.
  • Conversion Value: No value, Fixed amount, Form total or From a field, with an optional three-letter Currency (empty uses the entry’s currency).
  • Consent field: a Consent or Checkbox field. The conversion is only sent when it is checked; otherwise the entry gets a note that it was not sent.
  • Conditional Logic: Only send when conditions are met, for example only for a “Request a quote” choice.

Step 5: Send a Test Conversion

Save the feed, then click Send test conversion in the Test section. It uses sample data (test@example.com), never a real entry:

  • Google Ads: Google validates the request without recording anything.
  • TikTok: the event appears under Test events in Events Manager. Enter the Test event code first.
  • LinkedIn and Microsoft Advertising: these have no test mode, so the button only checks your credentials. No conversion is created.

Then submit a real test lead and check the Ad Conversions box on the entry.

How It Works

  • Click capture. A small first-party script stores click IDs from the landing URL and fills hidden inputs in forms that have an active feed. On submit, the IDs are checked and saved on the entry, and appear as entry list columns and in exports.
  • Background sending. Conversions are sent through the Gravity Forms background queue after the entry is saved, so submissions stay fast. Temporary errors (network problems, rate limits, server errors) are retried, up to 3 attempts; rejected data is not retried.
  • Entry box. The Ad Conversions box on each entry shows every feed as Sent, Failed, Not sent or Waiting with a short message, plus the captured click IDs. Each send is also added as an entry note.
  • Send conversions now. Use this button on the entry to send again after fixing credentials. The same event ID is reused, so a platform can recognise a repeat; a conversion that was already accepted cannot be undone.

Limits and What Is Not Included in Version 1.0

  • Meta/Facebook (use the GravityExtra Facebook Conversion add-on), Pinterest, Snap, X and Reddit are not included.
  • Sending a conversion later when a lead becomes a customer or a payment completes is not automatic. Use Send conversions now on the entry.
  • Conversion adjustments or retractions, bulk upload of past entries and OAuth “Connect” buttons are not included. You create your own API credentials.
  • Each platform only accepts conversions for a limited time after the click and decides how many leads it can match. Check each platform’s current rules.

Developer Hooks

The add-on uses standard Gravity Forms feed hooks with its slug gfadconversionsaddon. gform_max_async_feed_attempts controls how many times a background send is tried (the add-on sets 3), and gform_gfadconversionsaddon_pre_process_feeds lets you skip feeds for an entry, for example your own team’s test leads.

functions.php
PHP
// Allow up to 5 attempts for Ad Conversions sends
add_filter( 'gform_max_async_feed_attempts', function( $max, $form, $entry, $addon_slug ) {
    return 'gfadconversionsaddon' === $addon_slug ? max( $max, 5 ) : $max;
}, 20, 4 );

// Do not send conversions for internal test leads (email in field 2)
add_filter( 'gform_gfadconversionsaddon_pre_process_feeds', function( $feeds, $entry ) {
    $email = strtolower( rgar( $entry, '2' ) );
    return false !== strpos( $email, '@yourcompany.com' ) ? array() : $feeds;
}, 10, 2 );

Troubleshooting & FAQ

The entry says the conversion was not sent because consent was not given.

The feed’s consent field was not checked. Check the right field is selected in Consent field (for a Consent field, pick its checkbox input). Feeds without a consent field only send when Assume consent is on.

The entry says there is nothing to match the conversion.

The platform needs a click ID or contact details. Map Email (and Phone with a country code or a Default phone country code), and make sure your ad URLs keep the click ID: redirects on the landing page can remove it.

Google sign-in failed.

Check the OAuth client ID, client secret and refresh token, and that the refresh token was created for the Data Manager API scope. If your OAuth app is still in Testing in Google Cloud, publish it, as Google can expire refresh tokens issued to apps in Testing.

LinkedIn stopped working after a few weeks.

LinkedIn access tokens last 60 days. Paste a new token, or add the refresh token, client ID and client secret if LinkedIn issued refresh tokens to your app so the token renews automatically. Update API version when LinkedIn retires the version you use.

Can I see what was sent?

Each send adds an entry note with the result, and the Ad Conversions box shows the status per feed. For details, enable logging under Forms → Settings → Logging; the log contains entry and feed IDs, the platform and the response code, never personal data or tokens.

Resource Hub

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