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.
- iOS ad clickURL has ?gbraid=...
- RedirectQuery string removed
- Landing pageNo click ID in URL
- Form or checkoutNothing to store
- ConversionCannot be matched to the click
The click ID is present on the ad click but dropped before the conversion is recorded.
Example: 100 real iOS-click conversions. Numbers are illustrative only.
How to check if your site has it
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.
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.
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.
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.
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.
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.
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.
Check URL redirects
In Online Store, then Navigation, then URL Redirects, confirm your redirects do not target URLs with hard-coded queries. Shopify normally passes the query string on, so also check any apps that redirect.
Store the values
Save gbraid and wbraid as cart attributes using a small script in your theme, so they reach the order. Theme code varies, so check where your theme builds the cart form.
Create URL variables
Add two URL variables of type Query, with query keys gbraid and wbraid.
Use the Conversion Linker
Make sure the Google Ads Conversion Linker tag fires on all pages, so Google can store click data for the visit.
Pass them on
Send the variables to your form's hidden fields or to your CRM through a Custom HTML tag or your form tool's own settings.
Check 301 redirects
In Site settings, then Publishing, then 301 redirects, confirm your rules do not rewrite to URLs without the query string. Test them with the fake URL.
Add hidden inputs
Add hidden input fields named gbraid and wbraid to your form, and fill them with the script in the Custom code tab placed in page or site custom code.
Add hidden fields
In the form or survey builder, add hidden fields for gbraid and wbraid. Hidden fields can read URL query parameters when the field name matches the parameter.
Check funnel redirects
If you redirect between funnel steps or to a custom domain, test that the query string survives.
Check redirects
In the SEO tools, review the URL redirect manager and test each rule with the fake URL.
Capture the values
Use Velo (Wix's code feature) with wix-location to read the query and store it on your form submission. Without Velo, ask whether your form tool supports hidden fields.
Check URL mappings
In Settings, then Developer Tools, then URL Mappings, check that your rules do not drop the query string. Test with the fake URL.
Add a script
Squarespace forms have limited hidden-field support. Store the values in a cookie with the script below, or use a form tool that supports hidden fields.
Pass the query string in redirects
In nginx use $is_args$args in the target. In Apache, use the QSA flag or leave the target without a query. See the snippets below.
Capture the values
Use the JavaScript snippet to read gclid, gbraid and wbraid and fill hidden fields.
server {
listen 80;
server_name example.com www.example.com;
return 301 https://www.example.com$request_uri;
}RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L,QSA](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);
});
});
});
})();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
- 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.
Day 1
A redirect rule is added that drops the query string.
Week 2
iOS conversions in Google Ads dip, while form submissions stay steady.
Week 4
Bidding shifts as it sees fewer conversions.
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.
Related issues
- TRK-144gclid stripped by redirect to www / httpsFix guide
- TRK-145gclid stripped by trailing-slash or language redirectFix guide
- TRK-146gclid stripped by cookie banner reloadFix guide
- TRK-148gclid not stored in hidden form field / CRMFix guide
- TRK-149Auto-tagging off in Google Ads (no gclid on clicks)Fix guide
- TRK-142Conversion Linker tag missingFix guide