On this page
What this issue is
An in-app browser is a simple web view that an app shows when you tap a link inside it. Instagram, Facebook, TikTok, LinkedIn and many email apps do this. These views often have no tab bar, so a link set to open in a new tab (target="_blank" or window.open()) behaves in unexpected ways.
Why it costs you leads or sales
Visitors from social ads and email often arrive in an in-app browser. If a step in your funnel opens in a new tab, they can get stuck: the back button closes the whole browser, the cart is empty in the new context, or a login is lost. Some give up. Others finish in a different browser, so the sale is credited to direct traffic instead of the ad. The business impact is usually low to moderate, but it hits the exact traffic you pay for.
- Ad tapOpens inside the Instagram browser
- Landing pageLoads normally
- Book now linktarget=_blank opens a new view or jumps to the system browser
- Form or checkoutSession and UTMs missing, back button unclear
- Thank-you pageConversion not credited to the ad
The visitor reaches the form step but the session does not follow them.
How to check if your site has it
A desktop browser will not show this problem. You need to open your pages inside the real apps on a real phone.
Find new-tab links in your code
Search your theme, page builder or exported HTML for target="_blank" and window.open. Focus on buttons in the funnel: book, buy, apply, get a quote.
Send yourself test links
Post your landing page link in a private Instagram or Facebook message, a test email, or a TikTok bio link, then tap it on a phone so it opens in the app's own browser.
Walk the whole journey
Tap each button, fill the form, use the back button and finish on the thank-you page. Note where the page opens in an unexpected place or the back button stops working.
Compare the URL
Check whether UTM parameters and any click ID are still on the URL of the step after the new-tab link.
How to fix it
The simplest fix is to open funnel links in the same tab. Reserve new tabs for genuinely external pages, such as terms in a separate site, and make sure the funnel does not depend on them.
Edit the link
In the block editor, select the button or link, open the link settings and turn off 'Open in new tab'.
Check menus and theme
In Appearance > Menus, untick 'Open link in a new tab' (enable it under Screen Options if hidden). Some themes and page builders have their own 'open in new window' setting on buttons.
Check theme settings
In the theme editor, look at button and announcement bar blocks for an 'Open link in new tab' option and turn it off.
Search theme code
In Online Store > Themes > Edit code, search for target="_blank" in sections and snippets used on funnel pages.
Change link settings
Select the link or button, open Element Settings and set the link to open in the same tab (untick 'Open in new tab').
Edit the button link
In the funnel or website builder, select the button, open its link settings and choose to open in the same window instead of a new tab.
Edit the link
Select the button, click the link icon and untick 'Open in a new tab' in the link panel.
Edit the link
In the link editor for the button or text, turn off 'Open in new window'.
Remove target and window.open
Delete target="_blank" from funnel links and replace window.open() calls with normal navigation (see the snippet below).
// Before
window.open('/checkout', '_blank');
// After
window.location.assign('/checkout');Keep parameters on internal links
Make sure links to the next funnel step do not drop UTMs or click IDs, since a new context will not remember them.
Offer an escape hatch where needed
For flows that cannot work in a web view (some wallet or login pop-ups), show a short message suggesting the visitor opens the page in their main browser.
Before
- Book button uses target=_blank
- In-app browser opens a hidden or external view
- Back button closes everything
- UTMs and session lost
After
- Book button opens in the same tab
- Visitor stays in the in-app browser
- Back button returns to the landing page
- Parameters and session kept
How to confirm it's fixed
- Funnel buttons open in the same tab in Instagram, Facebook and TikTok browsers on a real phone
- The back button returns to the previous funnel step
- The form or checkout keeps the cart, session and login
- UTMs or click IDs are still on the URL after each step
- The thank-you page loads and the conversion shows in your analytics
- Tested on both iPhone and Android
How to prevent it happening again
- Make 'same tab' the default for every funnel button in your design system or templates
- Add an in-app browser test (a real phone and the real apps) to your launch checklist
- Review new pages and theme updates for target="_blank" and window.open
- Ask agencies and plugin vendors not to add new-window behaviour to funnel steps
- Keep external links (policies, help articles) out of the critical path
How FunnelGuard handles this
This issue is outside what FunnelGuard checks. FunnelGuard runs your journeys with a robot visitor in a standard browser, and it does not reproduce the behaviour of the Instagram, Facebook or TikTok in-app browsers. The kind of tool that fits is a real-device testing service or a manual test on physical phones inside those apps. FunnelGuard can still help on the rest of the funnel: it runs your forms and checkouts on a schedule and checks the steps, tracking hits and lead delivery.
Related checks
If your page looks or behaves wrong inside social apps beyond link handling, see the guide on pages broken in in-app browsers. Login and checkout iframes that fail because of cookie rules are a separate problem.
Questions people ask
Why does my link open blank or not work in the Instagram browser?
The Instagram in-app browser is a limited web view. Links set to open in a new tab (target="_blank" or window.open) can open in a hidden view or fail to load properly. Open the link in the same tab and test it inside the real app.
Should I use target="_blank" on buttons in my funnel?
Generally no. Keep steps such as booking, forms and checkout in the same tab so the session, cart and back button keep working. Use new tabs only for external pages that the visitor does not need to complete the funnel.
Does rel="noopener" fix new-tab problems in in-app browsers?
No. rel="noopener" is a security measure that stops the new page controlling the old one. It does not change how in-app browsers handle new tabs, so removing the new-tab behaviour is still the fix.
Why is my back button not working in an in-app browser?
Often the page opened in a new view, so there is no earlier page in that view's history. Opening links in the same tab keeps the history intact and lets the back button return to the previous step.
Why do conversions from social ads show as direct traffic?
If a new tab or an external browser opens without the campaign parameters, the UTMs or click ID are lost. The conversion is then credited to direct. Keep parameters on every internal link and keep the flow in one tab.
How do I test my site in an in-app browser?
Send your page link to yourself in Instagram, Facebook or TikTok, or in an email app, and tap it on a real phone. Then complete the full funnel, including the back button. Desktop browser tools do not reproduce these web views.
Can FunnelGuard detect in-app browser problems?
No. This is outside what FunnelGuard checks, because it needs real-device testing inside the apps. FunnelGuard covers scheduled checks of your forms, checkouts, tracking hits and lead delivery in a standard browser.
Related issues
- PRF-194Page broken in in-app browsers (Instagram/Facebook/TikTok webview)Fix guide
- PRF-191Page broken in Safari (iOS/macOS)Fix guide
- PRF-195Third-party cookies blocked (Safari ITP) breaks login/checkout iframeFix guide
- PRF-193Page broken in Samsung InternetFix guide
- PRF-192Page broken in FirefoxFix guide
- PRF-196CSS features unsupported (has(), container queries) break layoutFix guide