On this page
What this issue is
Link Tracking Protection is a privacy feature in Apple's iOS, iPadOS and macOS. It removes query parameters that Apple classes as cross-site trackers when a link is opened from Mail, Messages or Safari Private Browsing. Since iOS 17 it is on by default in those places. Parameters such as gclid (Google Ads), fbclid (Meta), and similar click IDs can be removed before your page loads.
Why it costs you leads or sales
A missing click ID means the conversion can't be tied back to the ad click. You lose attribution, not the sale itself. The impact is usually medium: it grows if you run email-heavy or messaging-heavy campaigns, or have many iPhone users.
- Offline conversion imports to Google Ads fail because there is no gclid to match.
- CRM records show leads with no ad source, so paid traffic looks weaker than it is.
- Smart bidding gets fewer conversion signals and learns more slowly.
- Meta can't match some events to the ad click, which lowers reported results.
- Reports mark iPhone conversions as direct or unassigned.
- Link clickedURL has ?gclid=... in Mail or Private tab
- iOS strips IDLink Tracking Protection removes gclid/fbclid
- Page loadsNo click ID to store
- Lead or orderSaved without click ID
- Ad platformCan't match conversion to click
The visitor reaches the site, but the click ID never does.
Example: illustrative numbers only. Share of conversions that keep a click ID, by traffic type.
How to check if your site has it
Build a test URL
Add a fake click ID to your landing page, for example https://example.com/?gclid=TEST123&utm_source=test.
Open it from Mail or Messages
Email or text the link to yourself and tap it on an iPhone running iOS 17 or later.
Read the address bar
If gclid=TEST123 is gone but utm_source=test remains, stripping is happening.
Repeat in a Private tab
Paste the same link into Safari Private Browsing and compare.
Check your data
In your CRM or ad platform, compare the share of iPhone leads with an empty click ID field to desktop leads.
How to fix it
You can't stop Apple removing the parameter, and you shouldn't try to hide it. The goal is to lose less attribution when it is removed.
Keep UTMs on every link
Tag all email, SMS and social links with utm_source, utm_medium and utm_campaign. They survive and give you channel-level attribution.
Store click IDs as soon as they arrive
Save gclid and fbclid on the first page view and write them into hidden form fields so they reach your CRM.
Turn on enhanced conversions
In Google Ads, enable enhanced conversions for leads or web so conversions can be matched with hashed email or phone, even with no gclid.
Send Meta events server-side
Use the Meta Conversions API with the same event ID as the browser pixel so Meta can match and deduplicate.
Link to a clean URL in email
For your own emails, rely on UTMs and your ESP's reporting rather than click IDs, since Mail strips them.
(function () {
var params = new URLSearchParams(window.location.search);
['gclid', 'fbclid', 'utm_source', 'utm_medium', 'utm_campaign'].forEach(function (key) {
var value = params.get(key);
if (value) {
try { localStorage.setItem('fg_' + key, value); } catch (e) {}
}
});
document.querySelectorAll('input[type=hidden][name]').forEach(function (input) {
var saved = null;
try { saved = localStorage.getItem('fg_' + input.name); } catch (e) {}
if (saved && !input.value) input.value = saved;
});
})();Add hidden fields
In your form plugin, add hidden fields named gclid and fbclid. Many form plugins offer a hidden field with a dynamic value; otherwise use the script above.
Use a server-side option
Use your tracking or ads plugin's Conversions API setting if it has one.
Enable Meta and Google channels
In the Facebook & Instagram and Google & YouTube sales channels, set data sharing to the highest level offered so server-side events are sent.
Save IDs in cart attributes
Add the script to your theme and write the values to cart attributes so they appear on the order.
Create URL variables
Add URL query variables for gclid and fbclid, and a first-party cookie or storage variable to read them back later.
Configure enhanced conversions
In your Google Ads conversion tag, turn on user-provided data and map email and phone fields.
Add hidden inputs
Add hidden fields to your form, then add the script in Project Settings > Custom Code > Footer Code.
Add hidden fields
Add hidden fields to forms, set to be filled from the URL, and add the script in the page's custom code section.
Use custom code
Add the script under Settings > Custom Code. Hidden form fields may need Velo or the Wix form's built-in URL parameter field, depending on your form type.
Inject the script
Add it under Settings > Advanced > Code Injection. Squarespace forms don't have hidden fields on every plan, so check yours.
Capture on the server
Read the parameters in your backend when present, store them with the lead, and send conversions from the server using the ad platform's API.
Before
- Click ID is gone and nothing replaces it
- Leads arrive with no source
- Offline imports can't match
After
- UTMs on every link
- Click IDs saved when present
- Enhanced conversions and server-side events fill gaps
Ad click → yoursite.com/offer?gclid=Cj0KCQ…&utm_source=google&utm_campaign=spring
301 redirect
Lands on → yoursite.com/offer/
- gclid
- utm_source
- utm_campaign
The page loads without gclid or fbclid, so the lead is saved with no click ID.
You can't switch this off for visitors. This shows why fallbacks matter.
How to confirm it's fixed
- A test lead from a normal desktop click shows gclid in the CRM.
- A test lead from an iPhone Mail link shows UTMs even though gclid is empty.
- Google Ads shows enhanced conversions status as recording or active in the conversion diagnostics.
- Meta Events Manager shows both browser and server events, with deduplication working.
- The share of iPhone leads with no source drops over the next weeks.
How to prevent it happening again
Treat click IDs as a bonus, not the only link between an ad and a sale. Tag every campaign link with UTMs, keep enhanced conversions and server-side events switched on, and retest on a current iPhone after major iOS releases, because Apple can change which parameters it removes.
How FunnelGuard handles this
This is outside what FunnelGuard checks. Link Tracking Protection happens inside real people's iPhones, and a robot visitor can't reproduce it. A tool that fits is attribution or conversion-quality analysis, such as a server-side tracking setup and your ad platforms' own diagnostics, which show how many conversions arrive without a click ID.
FunnelGuard can still help with the rest of the funnel. It runs your lead forms and checkouts on a schedule and checks that the tracking hits for GA4, Google Ads, Meta and others fire and that test leads reach your inbox and CRM. There is a free plan and a free read-only website audit.
Questions people ask
Why is my gclid missing on iPhone?
Apple's Link Tracking Protection removes known click IDs like gclid from links opened in Mail, Messages and Safari Private Browsing. The page loads, but the parameter is gone before your site sees it. Test with a fake gclid on a real iPhone to confirm.
Does iOS strip fbclid and gclid from all links?
No. It applies mainly to links opened from Mail, Messages and Private Browsing. Normal Safari browsing is affected less, and UTM parameters are generally kept. Apple may change the list, so test on a current device.
How do I track conversions when gclid is stripped?
Use enhanced conversions in Google Ads, which match conversions using hashed email or phone. Keep UTMs on all links and save the gclid whenever it does arrive. For Meta, send events through the Conversions API as well as the pixel.
Can I turn off Link Tracking Protection for my visitors?
No. It is a setting on the visitor's device and you can't control it. Plan for it by using fallbacks rather than trying to avoid it.
Does Link Tracking Protection remove UTM parameters?
Generally no. It targets known click IDs such as gclid and fbclid. UTMs keep working for channel-level attribution, which is why you should tag every campaign link.
Is it okay to hide or rename the gclid to get around this?
Don't try to disguise tracking parameters to defeat a privacy feature. That works against the visitor's choice and the platform's rules. Use consented, first-party methods like enhanced conversions and server-side events.
Can FunnelGuard detect iOS Link Tracking Protection?
No. It happens on real iPhones, outside what a robot visitor can reproduce. FunnelGuard does check that your tracking hits fire and test leads arrive, but for this issue you need attribution analysis and server-side tracking.
Related issues
- TRK-379Safari ITP caps cookies to 7 days / 24 hFix guide
- TRK-382Brave strips known tracking paramsFix guide
- TRK-383Third-party cookie deprecation breaks retargetingFix guide
- TRK-384Tracking breaks in in-app browsers (Instagram, TikTok)Fix guide
- TRK-378Tags blocked by ad blockers (no first-party fallback)Fix guide
- TRK-381Firefox ETP blocks tracker domainsFix guide