Promoting Your Mobile App on Your Website
There are a few simple strategies you can implement on your website to drive app downloads from your existing web visitors.
1. App Landing Page
Every website should include a dedicated app landing page that showcases your app with graphics and download buttons linking to both the Google Play Store and Apple App Store.
Once the page is live, you can generate a QR code from its URL to display in-store and direct customers straight to it.
To make the experience seamless for mobile users, add the following script to the head section of that page, replacing GOOGLE_PLAY_STORE_URL and APPLE_APP_STORE_URL with your actual store listing URLs (keep the quotes around each URL):
<script>
if (/Android/i.test(navigator.userAgent)) {
window.location.replace("
GOOGLE_PLAY_STORE_URL
")
} else if (/iPhone|iPad|iPod/i.test(navigator.userAgent)) {
window.location.replace("
APPLE_APP_STORE_URL
")
}
</script>
This script automatically redirects mobile visitors to the correct app store for their device, so a single QR code works for both iOS and Android users. You can find your store listing URLs by searching the app stores directly or through your developer portal, both Google and Apple provide a direct link to your listing from within their portals.
2. Smart App Banner (iOS)
Safari on iOS supports a native app download prompt that can be triggered simply by adding a meta tag to your website. When present, Safari will display a banner at the top of the page inviting users to download your app.
Apple's documentation covers all available configuration options, and setup only requires two steps.
a. Find your App ID
Log in to App Store Connect and navigate to your app listing under the Apps section. Your App ID will be visible in the app details.
b. Add the meta tag to your website
In the head section of each page on your website, add the following tag, replacing MY_APP_ID with the ID from the previous step:
<meta name="apple-itunes-app" content="app-id=
MY_APP_ID
">
Once added, iOS users visiting your site on Safari will automatically see the download prompt.
Still need help?
Our support team is here for you.
