Blog / Getting users for your app

Smart App Banner: turn mobile web visitors into installs

Short answer

A Smart App Banner is a banner for your app that Safari can show at the top of a web page on iPhone. Add one meta tag named apple-itunes-app with your App Store ID. Add app-argument if an installed app should open a matching screen. Keep normal store buttons on the page, because some visitors will never see the banner, such as Android users and people using other browsers.

By the USposted team. Published . 7 min read.

What the banner and the page button each do

Smart App BannerExtra route
Made by
Apple, from your meta tag
App installed
Opens the app
App not installed
Opens the App Store
After it is closed
Does not come back
Store buttonMain route
Made by
You, as a normal link
App installed
Opens the store page
App not installed
Opens the store page
After it is closed
The button stays on the page
Banner behavior is from Apple[1]. The button column describes a plain store link with no app link logic. Test both on your own page.

Adding the tag takes a few minutes. The harder part is building a page that still works when no banner appears, which can happen when someone arrives from a social app. Set up the banner first, then build the page as if it did not exist.

Add the Safari tag to the page

Put this tag inside the head of every page that should show a banner. Replace the example number with your app's ID:

<meta name="apple-itunes-app" content="app-id=123456789">

To find the ID, open your app in App Store Connect. Under General, select App Information and look for Apple ID in General Information. You can also use Apple's marketing tools and take the number between "id" and "?" in the content link.[1] The bundle ID, such as com.example.app, is a different value and will not work here.

Deploy the page, then check the HTML that your server sends. Replace the address in this command:

curl -s https://example.com/app | grep -io '<meta name="apple-itunes-app"[^>]*>'

We ran the grep part on two small sample files. It printed the tag from the page that had one, and nothing for the page without it. This pattern expects double quotes, with name as the first attribute. If your build tool writes the tag differently, look for it in the page source. Finding the tag does not prove that Safari will show the banner. Also, curl does not run JavaScript, so it will miss a tag that your framework adds in the browser. We suggest putting the tag in the server's HTML, because it is easier to check there.

Send people who have the app to the right screen

With the second value, app-argument, the banner can open a matching screen in an installed app. Apple lets you use any valid URL here, and a server script can create a different one for each page:[1]

<meta name="apple-itunes-app" content="app-id=123456789, app-argument=https://example.com/recipes/42">

The app has to read this URL and choose the screen. Apple's sample does this in an older app delegate method.[1] Connect it to the way your app already handles incoming links, then test it with the app closed and with it running in the background. For an unknown or deleted item, open a useful default screen.

Apple suggests passing a session ID so someone can continue unfinished work.[1] We suggest a public page ID. A session ID in the HTML could be saved by a cache or copied into a log. Never put a login token, email address or private document link in this tag.

Apple says that if someone stays on the page during the download, the View button becomes Open and keeps their place.[1] People who install the app and open it from the Home Screen are a separate case. Our guide to deferred deep linking explains what the app can know then.

Prepare the campaign values, but do not guess the format

Apple says you can measure the banner by adding your campaign and provider tokens to it. First, create a campaign link in App Store Connect. Open Analytics, select Campaigns and click the add button. A new app may have to wait, because the button appears only after the app has analytics data.[2] The link has these values:[2]

ValueMeaningHow to use it
ptProvider token for your developer accountCopy it from the link. It stays the same
ctCampaign token, which is also the campaign nameUse a new one for each test
mtMedia type tokenCopy it without changes
Campaign limits to know before you test
Campaign name30characters at most
First-time download24 hoursafter someone uses the link or token
Campaign data appears5 peoplewith a first-time download
From Apple's campaign links page[2]. Each metric must also reach 5 in the dates you select. One test download will not show up.

Apple's current pages leave a gap. The analytics page tells you to add the tokens, but shows no finished banner tag.[2] The current tag page lists only app-id and app-argument.[1] A 2016 version of that page also had affiliate-data, but only for an iTunes affiliate string. It did not mention campaign tokens.[8]

You may find tags on other sites that combine affiliate-data, pt and ct. We could not confirm that format in Apple's current documentation, so we do not give it as a recipe. Ask Apple Developer Support for the current syntax before you rely on banner campaign data. Do not put pt and ct in app-argument either. That value is for your app, and Apple does not describe it as a way to report campaigns.

You can still measure the page now. Use Apple's campaign link on your own App Store button. If the link came from a video page, a name like web_recipe_video shows where the button was and which idea brought people there. This measures the button alone, so do not count its downloads as banner downloads.

Know when the banner may not appear

Apple lists several reasons for a missing banner. Check these before you change the tag:

What you seeWhat the sources sayWhat to do
Nothing in the iOS simulatorBanners do not appear there[1]Use a real iPhone
Nothing in an embedded pageBanners do not work inside a frame[1]Open the main page itself
It is missing in one country or on one deviceIt is hidden if the app is not available there or does not support the device[1]Check where the app is available and which devices it supports
It was closed earlierIt does not come back to that page[1]Test on another iPhone
It is missing inside a social appThe analytics page names only Safari[2]Use the store button

App Clips have their own rules. Their banner works in Safari without Private Browsing, or in a browser view that an app opens with SFSafariViewController.[4] Those rules are written for App Clip banners, so do not assume that they cover every normal banner.

TikTok says that people who tap an ad may see the website in TikTok's own browser, which has limited features. That page is about ads and says nothing about profile links or Smart App Banners.[6] Test each place where you share the link. If it fails, use our checks for an Instagram in-app browser that is not working.

Build the page to work without a banner

Near the top of the page, show the result from your post, one real app image and the store buttons. Use normal links that work without JavaScript. These are example addresses:

<a href="https://apps.apple.com/app/apple-store/id123456789?pt=123456&amp;ct=web_recipe_video&amp;mt=8">Get the iPhone app</a>

<a href="https://play.google.com/store/apps/details?id=com.example.app">Get the Android app</a>

Copy the first link from App Store Connect instead of building it yourself. In HTML, write each & in the address as &amp;. The Google Play link follows Google's format and uses your package name.[9] If you use an App Store badge, use Apple's artwork, do not change or animate it, and show only one in each layout.[7]

Show both buttons. Device detection can be wrong, and some people open the page on a computer. An automatic redirect can also send them to the store before they see the page. Do not cover the page with an install message. Google recommends small banners and gives Safari's Smart App Banner as an example.[5] Our article on an app landing page for social traffic helps with the rest of the page.

Test the route from a post

You need a real iPhone for this. Write down the iOS version, the app you started from, and what happened in each test:

  1. Open the page in Safari without the app. Check the app's name in the banner, then use it to open the store.
  2. Install the app, return to the page and open the app from the banner. Check that it shows the right screen. Repeat with a deleted item.
  3. Close the banner and return to the page. The banner should stay hidden, and your button should still work.
  4. Open the same link from your TikTok or Instagram profile. Test each place where you will use it. The test passes if the store button works, even when there is no banner.
  5. Open the page in another iPhone browser and on Android. Tap the right store button and check which app it opens.

When you read the reports, note that Apple usually lists website taps in Safari under web referrer. If there are redirects in Safari, the last address gets the credit. Taps in another iPhone browser are listed under that browser's app instead.[3] Compare the same dates before and after you add the tag. A change could also come from a new post or a store update. Our guide to what App Store impressions mean explains the numbers before a download.

Questions people ask

Does a Smart App Banner work in Chrome on iPhone?

Do not count on it. Apple's analytics help describes Smart App Banners as a Safari feature, and none of the Apple pages we used says that Chrome shows them. Add a visible App Store button, and Chrome visitors will have a route to your app. If that button is a normal link, Apple may list the visit under the Chrome app in your app referrers, because taps from a website in a non-Safari iPhone browser are reported that way. You can also use a campaign link on the button to label its traffic.

Can I change the text, color or size of the banner?

The tag has no setting for any of these. Apple's page lists only two values: the required app ID and the optional app argument. Apple controls how the banner looks and where it goes. If you need your own wording, such as the promise from a video, put it in the page heading and next to your store button. You can also build a small banner in HTML. Do not make it look like Apple's banner, and use Apple's official App Store badge artwork without changes.

Is there a Smart App Banner for Android?

Apple's tag only promotes apps on Apple's App Store, so Android visitors need something else. Google's search guidance mentions an in-app install experience in Chrome, or a small HTML banner that links to the right store. A normal Google Play button is the simplest choice for a small site. Its link needs your app's full package name, which you can find in Play Console. Keep it as a visible link, and test it on an Android phone in Chrome and from the app where you share your posts.

Can I use different apps on different pages?

Yes. Apple says to add the tag to each page where you want a banner, and each tag holds one app ID. A studio with three apps can put the matching ID on each app's own page. Apple's page does not explain what happens if a single page has several banner tags, so use one tag per page. If one page lists all your apps, either pick the main app for the banner or leave the banner out. A normal store button next to each app will be clearer.

Will a Smart App Banner hurt my Google ranking?

Google's guidance warns against dialogs and full page screens that cover the content. It says to use banners that take up a small part of the screen, and gives Smart App Banners in Safari as an example. The page does not promise better rankings for using one. Do not add your own full screen install message on top of it. Open the page on a small phone and check that visitors can see the heading, the first lines of text and your store button without closing anything.

Sources

  1. Apple Developer: Promoting Apps with Smart App Banners
  2. Apple Developer: App Store Connect Analytics, campaign links
  3. Apple Developer: App Store Connect Analytics, acquisition
  4. Apple Developer: App Clip banners on websites
  5. Google Search Central: avoid intrusive interstitials
  6. TikTok Support: about TikTok In-App Browser
  7. Apple: App Store marketing guidelines
  8. Apple, 2016 version saved by the Internet Archive: Smart App Banners
  9. Android Developers: linking to Google Play

Prices and platform rules change. We checked these pages on November 30, 2026.

Keep reading

More guides

Browse by topic

Getting users for your appCloud phones vs real phonesPhone farmsUS accounts from abroadVPNs, proxies and bansClipping and multiple accountsPosting services and phone rentalInstagram for a US audienceRunning the accountsPlaybooks by businessPayout programs and eligibilityAll guides