On this page
What this issue is
Every app has a permanent id in its store link. On the App Store it is the number after id, for example apps.apple.com/us/app/your-app/id1234567890. On Google Play it is the package name in the id parameter, for example play.google.com/store/apps/details?id=com.example.app.
Why it costs you leads or sales
People who tap your Get the app button and land on the wrong app usually leave. Some install the old app, find it outdated or missing features, and uninstall it. Paid campaigns suffer most, because you pay for the click and the install happens in an app you no longer support.
- Ad or search clickVisitor lands on your page
- Get the app buttonLink carries the wrong app id
- Store listingOld or different app shown
- Install of the right appNever happens
The page and button look fine, but the store listing is the wrong one, so everything after it is lost.
Example: illustrative numbers only. The same traffic, with the link pointing at the right app and at an old app.
How to check if your site has it
First write down the correct ids. Open your live app in each store and copy the id from the address bar: the id number on the App Store, the package name on Google Play. Then compare them with every place your site uses them.
- Header, hero and footer text links to the stores
- App Store and Google Play badge images and the links around them
- The Smart App Banner tag: <meta name="apple-itunes-app" content="app-id=...">
- Web app manifest: related_applications entries with id and url
- Pop-ups, sticky bars and exit-intent offers
- Email templates, thank-you pages and QR code destinations
- Links hidden in page builder blocks, theme settings or a tag manager
curl -sL https://example.com/ | grep -oE "(apps\.apple\.com|itunes\.apple\.com|play\.google\.com)[^\"' <]*|app-id=[0-9]+|\"id\": ?\"[^\"]+\""Run it on your home page, landing pages and app page. Then tap each link on a real iPhone and Android phone and confirm the listing name, icon and developer are the ones you expect.
How to fix it
Confirm the right ids
Copy the id from your live App Store and Google Play listings. Note the old ids too, so you can search for them.
Search your site for the old ids
Search page content, theme files, page builder blocks, tag manager and email templates for the old id number or package name.
Replace each one
Update the link, the badge link, the Smart App Banner and the manifest so they all use the same id.
Clear caches
Purge your page cache, CDN and any email or QR tool that stores the old link.
Test on real devices
Tap every link on an iPhone and an Android phone.
Check content and theme
Search posts and pages, then Appearance > Editor or Customizer for header and footer badges. Check widgets and any plugin that adds banners.
Check site-wide search
A search-replace plugin or WP-CLI
wp search-replacecan find an old id in the database. Take a backup first and run a dry run.
Edit theme sections
Go to Online Store > Themes > Customize and check header, footer and announcement bar. Then use Edit code and search for the old id.
Check pages and emails
Review Online Store > Pages and Settings > Notifications for store links.
Search tags and variables
Use the workspace search for the old id. Check Custom HTML tags that inject banners or pop-ups.
Publish a new version
Preview the change, then submit and publish the container.
Check elements and symbols
Search the Designer for link settings on buttons and images, including Symbols and the footer. Check Project settings > Custom code for a banner meta tag.
Publish
Publish the site to all domains.
Edit funnels and websites
Open each funnel or website page, check button and image links, then check the page's custom code and tracking code areas.
Check emails
Review email and SMS templates that carry store links.
Check buttons and the footer
In the editor, click each badge or button and open its link settings. Check the footer, which repeats across pages.
Check custom code
Look in Settings > Custom code for a banner or meta tag.
Check blocks and the footer
Edit each button or image block link. Check the site footer and header.
Check code injection
Look in Settings > Advanced > Code Injection for a Smart App Banner meta tag.
Search the repository
Run
grep -rE "id[0-9]{6,}|play.google.com"across templates, components, config and content files. Move the ids into one shared constant.Deploy and purge
Deploy, then purge the CDN cache.
<meta name="apple-itunes-app" content="app-id=1234567890">
<a href="https://apps.apple.com/us/app/your-app/id1234567890">App Store</a>
<a href="https://play.google.com/store/apps/details?id=com.example.app">Google Play</a>How to confirm it's fixed
Before
- Footer badge uses the old app's id
- Smart App Banner shows a different app
- Installs and reports credited to the wrong app
After
- Every link, badge and banner uses one id per store
- Listing name, icon and developer match on a phone
- Installs land in the app you promote
- Re-run the grep or search and find no old ids
- Open each page in a private window to bypass cache
- Tap each link on an iPhone and an Android phone
- Check the Smart App Banner on iPhone Safari
- Check QR codes and email links separately
How to prevent it happening again
This mostly breaks after a change: a rebrand, a new app that replaces an old one, a redesign or a landing page copied from an older campaign. Add a store-link check to your launch checklist and keep a short list of the current ids where your team can find it.
Month 1
You launch a new app listing to replace the old one.
Month 1
The home page is updated, but the footer and a landing page keep the old id.
Month 2
Visitors install the old app and reviews mention missing features.
Month 3
Someone searches the site for the old id and fixes every place.
How FunnelGuard handles this
FunnelGuard detects this issue. On its first run it pins the app id for each store link on your site. On later runs it checks every store link, badge, Smart App Banner and web manifest app against the pinned id, and flags any that point to a different app.
A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. The Free plan covers 1 site with daily checks and no card, and paid plans have a 3-day free trial. A free read-only website audit is also available.
Questions people ask
Why does my App Store link open the wrong app?
The id in the link (the number after id in the URL) belongs to a different or older app. Copy the id from your live listing and replace it in every link, badge and banner on your site.
Why does my Google Play link open an old app?
The id parameter in the URL is the package name of the old app. If you published a new app under a different package name, update every Google Play link to the new one.
How do I find my app's id for an App Store link?
Open your app's page on the App Store and look at the URL. The number after id, such as 1234567890, is your app id. You can also find it in App Store Connect under your app's information.
How do I find my Google Play package name?
It is in the address of your Play listing, after id=, for example com.example.app. It also appears in Play Console under your app's details.
Can the Smart App Banner point to a different app than my links?
Yes. The banner uses the app-id in a meta tag, separate from your links. Update it so it matches the app your links open.
How do I check every store link on my site at once?
Search your page source and theme files for apps.apple.com, play.google.com and app-id=, then compare each id with your live listing. A monitoring tool can repeat that check on a schedule.
Does FunnelGuard check store links?
Yes. It pins the app id found on the first run, then checks every store link, badge, Smart App Banner and manifest app against it and alerts you if one changes.
Related issues
- APP-008Smart app banner points to a different app than the store linksFix guide
- APP-002App removed from the store (listing not found) while the site still links to itFix guide
- APP-006iPhone visitors sent to Google Play (or Android visitors to the App Store)Fix guide
- APP-007Get the app button leads to a 404, a loop or a dead page instead of the storeFix guide
- APP-016Attribution link (Adjust, AppsFlyer, Branch, Firebase) broken or sending to the wrong storeFix guide
- APP-004Store link has no campaign (no Play referrer, no App Store campaign token) so installs aren't attributedFix guide