Skip to content
FunnelGuard

Fix guide by FunnelsGuard

gbraid and wbraid not preserved: how to find and fix it

TRK-147High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

When someone clicks a Google ad with auto-tagging on, Google adds a click ID to the landing page URL. Usually that is gclid. For some iOS traffic, where app and web privacy limits apply, Google adds gbraid or wbraid instead. wbraid is used for web-to-app journeys and gbraid for app-to-web journeys, and each value is meant to be passed on exactly as received.

Why it costs you leads or sales

Your leads and sales still happen. But Google Ads cannot attribute the ones that came from iOS clicks, so those conversions show as missing or low. Smart Bidding then learns from incomplete data and may bid less on audiences that actually convert. Reports make iOS campaigns look weaker than they are, and budget can move the wrong way.

If you import offline conversions from a CRM, a missing braid value means that lead cannot be uploaded with a click ID at all.

Where the braid parameter gets lost
  1. iOS ad clickURL has ?gbraid=...
  2. RedirectQuery string removed
  3. Landing pageNo click ID in URL
  4. Form or checkoutNothing to store
  5. ConversionCannot be matched to the click

The click ID is present on the ad click but dropped before the conversion is recorded.

Conversions Google Ads can matchExample numbers
Conversions Google Ads can match (example)Real conversions: 100 conversions; Reported, braid kept: 85 conversions; Reported, braid dropped: 40 conversions038771008540Real conversionsReported, braid keptReported, braid dropp…conversions

Example: 100 real iOS-click conversions. Numbers are illustrative only.

How to check if your site has it

Test by hand
  1. Build a test URL

    Take your landing page URL and add a fake value, for example ?gbraid=TEST123&utm_source=test. Repeat with wbraid=TEST123. Real values come only from real ad clicks, so this checks your site, not Google.

  2. Load it and watch the address bar

    After redirects finish, check whether gbraid or wbraid is still in the URL. Test the http, non-www and trailing-slash variants too.

  3. Check the network tab

    Open browser DevTools, then Network, and reload. Look at each redirect response and its Location header. If the query string is missing there, the redirect is the cause.

  4. Submit a test form

    Check whether the value reaches your CRM or the form submission record. If you only store gclid, braid values are being dropped.

  5. Check your scripts

    Search your theme and tag setup for code that reads only gclid. Also check whether a cookie banner reloads the page without the query string.

How to fix it

There are two jobs. First, keep the query string through every redirect. Second, capture gbraid and wbraid as well as gclid wherever you store click IDs.

Fix by platform
  1. Keep query strings in redirects

    In your redirect plugin, enable the option to pass or ignore query parameters. Check any SEO plugin redirects and your host's force-HTTPS or www rules.

  2. Add hidden fields

    In your form plugin, add hidden fields named gbraid and wbraid, and fill them from the URL with the script in the Custom code tab. Many form plugins can also fill hidden fields from query parameters; check yours.

nginx: redirect to https and keep the query stringnginx
server {
  listen 80;
  server_name example.com www.example.com;
  return 301 https://www.example.com$request_uri;
}
Apache: force https and keep the query stringhtaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L,QSA]
Save gclid, gbraid and wbraid and fill hidden fieldsjavascript
(function () {
  var keys = ['gclid', 'gbraid', 'wbraid'];
  var params = new URLSearchParams(window.location.search);
  keys.forEach(function (k) {
    var v = params.get(k);
    if (v) {
      document.cookie = k + '=' + encodeURIComponent(v) + '; path=/; max-age=7776000; SameSite=Lax';
    }
  });
  function getCookie(name) {
    var m = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
    return m ? decodeURIComponent(m[1]) : '';
  }
  document.addEventListener('DOMContentLoaded', function () {
    keys.forEach(function (k) {
      document.querySelectorAll('input[name="' + k + '"]').forEach(function (el) {
        el.value = getCookie(k);
      });
    });
  });
})();
Redirect and form behaviour

Before

  • Redirect sends users to the clean URL
  • Script only reads gclid
  • Form saves no braid value
  • iOS conversions unmatched

After

  • Redirect keeps the full query string
  • Script reads gclid, gbraid and wbraid
  • Hidden fields store the value
  • iOS conversions can be matched

How to confirm it's fixed

Confirmation checks
  • Fake gbraid and wbraid URLs keep their values after all redirects
  • Test with http, non-www and trailing-slash variants
  • The cookie or hidden field shows the value in DevTools
  • A test form submission stores gbraid or wbraid in the CRM
  • The page does not reload without the query string after the cookie banner choice
  • Conversion Linker fires on the landing page in Tag Manager preview

How to prevent it happening again

Redirect rules, themes, cookie banner plugins and form changes are the usual causes of regressions. Re-run the fake-URL test after any of them. Keep one documented list of the click ID parameters you store: gclid, gbraid and wbraid. Add new redirects with a rule that keeps the query string.

How the problem appears over time
  1. Day 1

    A redirect rule is added that drops the query string.

  2. Week 2

    iOS conversions in Google Ads dip, while form submissions stay steady.

  3. Week 4

    Bidding shifts as it sees fewer conversions.

  4. After fix

    Query string is kept and braid values are stored.

How FunnelGuard handles this

FunnelGuard covers this issue only partly. It checks that the gclid parameter survives your journey. It does not explicitly check gbraid or wbraid.

Because the redirects and scripts that strip gclid usually strip the braid values as well, a gclid failure is a useful warning. But a rule or script that drops only gbraid or wbraid would not be flagged. To cover the rest, run the manual fake-URL test above after every redirect, theme or consent banner change, and confirm that the CRM stores the braid values from a test submission.

FunnelGuard runs your real journeys on a schedule from the EU or the US, re-checks a failure from a second region, then sends one alert (email, Slack, Teams, WhatsApp, webhook or PagerDuty) with a screenshot and a likely cause. Test visits are marked with utm_source=funnelguard and fg_test=1. The Free plan includes 1 site and 2 journeys with daily checks, and paid plans have a 3-day free trial.

Questions people ask

What are gbraid and wbraid in Google Ads?

They are click identifiers Google Ads adds to landing page URLs for some iOS traffic, where gclid cannot be used because of privacy limits. wbraid is used for web-to-app journeys and gbraid for app-to-web journeys. They let Google match conversions to ad clicks without user-level data.

Why is my gbraid parameter missing from the URL?

The most common cause is a redirect that removes the query string, such as an http to https, non-www to www or trailing-slash rule. A cookie banner or script that reloads the page can also remove it. Test with a fake ?gbraid=TEST123 URL and watch the address bar.

Do I need to store gbraid and wbraid as well as gclid?

Yes, if you want to match iOS conversions that come from Google Ads clicks. Store whichever one is in the URL, unchanged, next to the lead or order. Storing only gclid leaves iOS leads without a click ID.

Can I check gbraid and wbraid with a fake value?

Yes. Add ?gbraid=TEST123 or ?wbraid=TEST123 to your landing page and see if it survives redirects and reaches your form or CRM. The fake value is for checking your site only. Real values arrive only from real ad clicks.

How do I add gbraid and wbraid to a form?

Add hidden fields named gbraid and wbraid, and fill them from the URL or a saved cookie with a small script or your form tool's hidden field feature. Then check that the values show up in the submission and your CRM.

Does auto-tagging need to be on for gbraid and wbraid?

Yes. Google adds click IDs, including gclid, gbraid and wbraid, only when auto-tagging is enabled in your Google Ads account. If it is off, none of them appear on your landing page URLs.

Does FunnelGuard check gbraid and wbraid?

Only partly. FunnelGuard checks that gclid is preserved through the journey but does not explicitly check braid parameters. Cover the rest with the manual fake-URL test after changes to redirects, themes or consent banners.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: gclid checked; braid params not explicitly.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.