On this page
What this issue is
When someone taps an ad in Instagram or TikTok, the link usually opens in a web view: a small browser built into the app. It is not the visitor's default browser. It has its own cookie jar and storage, and the app controls some of its behaviour.
Why it costs you leads or sales
- Ad tapInstagram or TikTok ad is tapped
- In-app browserPage opens in the web view with its own cookies
- Switch browserVisitor returns later in Safari or Chrome
- PurchaseSeen as a new direct visit
- Ad creditPlatform never matches the sale
The ad click happens in the app browser, the purchase in another browser.
Example: numbers are illustrative only. Some sales that started in the app are reported as direct.
How to check if your site has it
Tag a test link
Add UTMs such as ?utm_source=instagram&utm_medium=test to your landing page URL.
Open it from inside the app
Send the link to yourself in a message or put it in your bio or a private post, then tap it inside Instagram or TikTok.
Check the address and tags
Confirm the UTMs stay in the URL after any redirect. Use GA4 DebugView or Meta Pixel Helper-style tools where you can, or check Events Manager test events and GA4 Realtime.
Complete a test action
Submit a form or reach the thank-you page and see whether the conversion appears with the right source.
Compare with the normal browser
Repeat in Safari or Chrome. Differences point to the in-app browser.
Look at your reports
In GA4, compare conversion rate for social traffic by device and browser. A very low rate or many direct sales after social campaigns is a hint.
How to fix it
Keep click IDs and UTMs on every redirect
Make sure redirects and link shorteners keep fbclid, ttclid and utm_ parameters.
Capture them on landing
Save the parameters into hidden form fields or your CRM record on the first page, so they reach the lead even if the visitor changes browser later.
Send conversions server-side
Use Meta Conversions API and TikTok Events API, or server-side GTM, with deduplication event IDs, so conversions do not depend on the web view's cookies.
Make the key action happen in one session
Shorten the path: a single-page form or checkout on the landing page lowers the chance of switching browsers mid-journey.
Offer a way to continue later
Capture an email or phone number early, or offer a saved cart link, so a return visit can be matched.
Test consent in the web view
Check your consent banner appears and can be accepted inside the app, otherwise tags may never fire.
const p = new URLSearchParams(location.search);
const keys = ['utm_source','utm_medium','utm_campaign','fbclid','ttclid','gclid'];
keys.forEach(k => {
const v = p.get(k);
if (v) sessionStorage.setItem(k, v);
});
document.querySelectorAll('form').forEach(f => {
keys.forEach(k => {
const v = sessionStorage.getItem(k);
const el = f.querySelector('input[name="' + k + '"]');
if (v && el) el.value = v;
});
});Cookie-only tracking
- Source stored only in the web view's cookies
- Lead form saves no campaign data
- Conversion seen as direct
Captured and sent server-side
- Parameters saved on first page
- Lead record holds source and click ID
- Conversions API sends the event
How to confirm it's fixed
- A test lead from the Instagram app has the right UTMs in the CRM
- Same test from the TikTok app does too
- Meta and TikTok test events show the server event once, not twice
- GA4 shows the session with the expected source
- Consent banner works in the in-app browser
- Redirects keep the parameters
How to prevent it happening again
How FunnelGuard handles this
Switches browser
Leads or data lost
The purchase looks like a new direct visit and the ad gets no credit.
Saving parameters on the first page and sending server-side events reduces the effect of switching.
Questions people ask
Why is my Meta pixel not tracking conversions from Instagram?
Instagram opens ads in its own in-app browser, which has separate cookies and can behave differently with scripts and consent banners. If the visitor buys later in Safari or Chrome, the pixel cannot link the sale to the ad. Adding the Conversions API with deduplication helps.
Why do Instagram or TikTok ad sales show as direct traffic in GA4?
The click happened in the app's web view, and the later visit came from another browser with no referrer or UTMs. GA4 then labels it direct. Saving UTMs and click IDs on the first page and passing them to your CRM reduces this.
How do I test my site in the Instagram in-app browser?
Add UTMs to your page URL, send the link to yourself or place it in your bio, and tap it inside the Instagram app. Then check the URL, run a test conversion and look for it in GA4 Realtime and Meta test events.
Do in-app browsers block cookies?
They do not all block them, but they usually keep cookies separate from your normal browser and behaviour can change between app versions. Do not rely on cookies alone for attribution.
Does server-side tracking fix in-app browser tracking?
It helps a lot, because conversions are sent from your server and do not depend on the web view's cookies. You still need to capture click IDs and UTMs on landing and deduplicate events with the browser pixel.
Can FunnelGuard test my site in the Instagram app?
No, FunnelGuard does not check in-app browsers yet. It can run your real funnels on a schedule and check steps, tracking hits and lead delivery, which helps catch problems on the normal path.
Related issues
- TRK-378Tags blocked by ad blockers (no first-party fallback)Fix guide
- TRK-379Safari ITP caps cookies to 7 days / 24 hFix guide
- TRK-380iOS Link Tracking Protection strips gclid/fbclid in Mail/PrivateFix guide
- TRK-383Third-party cookie deprecation breaks retargetingFix guide
- TRK-386Tracking breaks on accelerated/cached mobile pagesFix guide
- TRK-381Firefox ETP blocks tracker domainsFix guide