How to change your website inside the app
Video length 1:37English narration, English and Hinglish subtitles
Overview
Web Overrides change how your website behaves inside the app without touching what visitors see in a normal browser. Use them to tell app visits apart in your analytics, to let your pages call native features through the JavaScript bridge, and to add headers your server can read.
Seeing two headers in your app? Hide website parts, the first card, hides your website's own header, announcement bar and footer inside the app with a switch, on every plan. It's live: installed apps pick it up the next time they're opened.
You can also restyle parts of your site with custom CSS and JavaScript, redirect pages and replace words, all inside the app only. Press Rebuild preview to see the result; installed apps get these changes with your next build.
In this video you'll learn
- Tag app visits so your analytics can tell them apart
- Let your pages use native features through the bridge
- Hide your website's header and footer with a switch
- Redirect pages and replace text inside the app
Chapters
Web Overrides change how your website behaves inside the app (hiding its header and footer, tracking, user agent, the JavaScript bridge, headers, CSS, JavaScript, redirects and text) without changing what people see in a normal browser.
Step by step
Tell app visits apart
Under App tracking, Tag app visits with UTM parameters tags the first page of each visit, and Mark your page tags as app traffic labels Google Analytics 4 and Meta Pixel hits as app traffic. Where tracking runs shows what each tool counts, so nothing is counted twice.
User agent
By default (Append) the app adds AppSorcerer to the phone's normal user agent, so your server and scripts can recognise the app. Replace sets your own.
JavaScript bridge
The bridge lets your pages call native features such as haptics, sharing and push. Keep Embedded mode, because the NPM package is coming soon. Allowed URLs limits which pages may use it; leave it empty to allow your own domain.
Custom headers
Press Add header to send headers such as X-App-Platform when the app loads pages of your domain. Values can use {platform}, {version}, {deviceId} and {language}.
Hide your website header
In Hide website parts, switch on Hide the website header, Hide the announcement bar or Hide the footer. Anything else, like a pop-up, goes under More parts to hide: one CSS selector per line, such as .newsletter-popup. Shopify stores don't need the theme add-on for this, and Custom CSS is still there for more control.
Scripts and cookies
Custom JavaScript runs after each page loads, before the splash screen hides. Cookie persistence keeps people signed in between launches.
Redirects and text
URL redirects open another page instead of one that matches; they are checked before your link rules, up to 50. Text replacement changes exact words on your pages inside the app only, for example to hide “Download our app”.