Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Campaign URL not covered by Universal Links rules: fix it

APP-011High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Universal Links let a normal https link open your iOS app instead of a web page. iOS decides this by reading the apple-app-site-association file on your domain (at /.well-known/apple-app-site-association). The file lists which URL paths the app handles.

This issue is about the rules, not the file's existence. The file loads fine, but the path your campaign uses (for example /promo/spring or /lp/app) is either not listed or is blocked by an exclusion rule such as NOT or exclude. The result is that the link is treated as an ordinary web link.

Why it costs you leads or sales

Campaign links are often built to send existing app users straight into the app, where they are logged in and one tap from buying or booking. When the path is not covered, those users land on a web page instead. They may have to log in again, re-enter details or give up.

It is also easy to miss. The link still works, so nobody reports an error. You only see weaker app conversion from paid traffic, and the cause looks like a creative or audience problem.

Where the journey breaks
  1. Ad clickUser taps campaign URL on iPhone
  2. AASA rules checkPath excluded or not listed
  3. Opens in SafariWeb page instead of app
  4. In-app conversionLogged-in purchase or booking

The ad click works, but iOS finds no matching rule and keeps the user in the browser.

App-open rate from campaign clicksExample numbers
App-open rate from campaign clicks (example)Path excluded: 0 %; Path covered: 85 %03365085Path excludedPath covered%

Example: share of iPhone clicks with the app installed that open the app, before and after the path rule is fixed.

How to check if your site has it

Check your AASA rules against the campaign URL
  1. Open the file

    Visit https://yourdomain.com/.well-known/apple-app-site-association in a browser. It should show JSON, not an HTML page.

  2. Find the rules

    Look under applinks > details. Newer files use a components array. Older files use a paths array.

  3. Compare with your campaign URL

    Take the exact path from your ad (ignore the query string, it is not matched by path rules unless you add a ? rule). Check whether any rule matches it.

  4. Look for exclusions

    Rules with "exclude": true (components) or a path starting with NOT (paths) block matches. Rules are read top to bottom and the first match wins.

  5. Test on a device

    On an iPhone with the app installed, paste the campaign URL into Notes and tap it. It should open the app. Long-press shows an Open in app option if it is matched.

Example: a rule set that excludes the campaign pathjson
{
  "applinks": {
    "details": [
      {
        "appIDs": ["ABCDE12345.com.example.app"],
        "components": [
          { "/": "/promo/*", "exclude": true },
          { "/": "/product/*" }
        ]
      }
    ]
  }
}

In this example, /promo/spring is excluded, and /promo/* is not listed as a positive match anywhere, so it never opens the app.

How to fix it

Make the rules cover the campaign path
  1. Decide the exact path

    Agree which campaign paths should open the app, for example /promo/* or /lp/app.

  2. Add or edit the rule

    Add a positive rule for the path. Remove the exclusion, or narrow it so it no longer catches the campaign path.

  3. Mind the order

    The first matching rule wins. Put specific rules before broad ones, and exclusions only where they are meant to apply.

  4. Redeploy the file

    Publish it at /.well-known/apple-app-site-association with no redirect, over HTTPS, as application/json.

  5. Make sure the app handles the route

    The app must have the Associated Domains entitlement (applinks:yourdomain.com) and code that handles the incoming URL. Changes in the app need a new build.

Fixed: campaign path matchedjson
{
  "applinks": {
    "details": [
      {
        "appIDs": ["ABCDE12345.com.example.app"],
        "components": [
          { "/": "/promo/*" },
          { "/": "/product/*" },
          { "/": "/admin/*", "exclude": true }
        ]
      }
    ]
  }
}
Where to edit the file by platform
  1. Edit the static file

    Update the file in your web root under .well-known and deploy. Make sure the server sends Content-Type: application/json and does not redirect.

How to confirm it's fixed

Confirmation checks
  • The live file shows your new rules, with no redirect.
  • The campaign path matches a positive rule, and no earlier exclusion catches it.
  • Tapping the full campaign URL from Notes or Messages opens the app on an iPhone with the app installed.
  • Without the app installed, the same URL loads a working web page.
  • UTMs and click ids on the URL still reach the app or web page you expect.

How to prevent it happening again

The usual cause is a new campaign path that nobody added to the AASA file, or a broad exclusion added later. Keep the file in version control and review it whenever marketing proposes a new landing path.

Prevention habits
  • Use one agreed path prefix for app-first campaigns, such as /promo/*.
  • Add a review step: new campaign URL means check the AASA rules.
  • Keep exclusions narrow and place them deliberately.
  • Retest on a real iPhone after every change to the file or the app.
  • Monitor the campaign URL on a schedule rather than relying on spot checks.
Rules before and after

Before

  • Campaign path excluded or unlisted
  • Link opens in Safari
  • App users start from a logged-out web page

After

  • Campaign path matches a positive rule
  • Link opens the app
  • Users continue where they left off

How FunnelGuard handles this

FunnelGuard detects this issue. It reads the paths in your apple-app-site-association file and checks them against your campaign URL, so an excluded or missing path is flagged. It also runs the deep link check as part of the scheduled journey run.

A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. FunnelGuard reads the rules; it cannot tap the link on a physical iPhone, so still do a device test after you change the file. The Free plan covers 1 site and 2 journeys with daily checks and no card, and a free read-only audit is available.

Questions people ask

Why does my campaign link open in Safari instead of my app?

Most often the link's path does not match any rule in your apple-app-site-association file, or an exclusion rule matches it first. iOS then treats it as a normal web link. Add a positive rule for the path and remove or narrow the exclusion.

How do I add a path to Universal Links?

Edit the apple-app-site-association file on your domain and add a rule for the path, for example { "/": "/promo/*" } under components. Redeploy it at /.well-known/ with no redirect. The app also needs the Associated Domains entitlement for that domain.

Does the order of rules in the AASA file matter?

Yes. Rules are evaluated from top to bottom and the first match wins. If an exclusion sits above the rule that should match your campaign path, the link will not open the app.

Do query strings like UTMs affect Universal Links matching?

Path rules match the path, not the query string, so adding UTMs to /promo/spring does not normally stop it matching. Only rules that include a query component, such as ?, look at parameters.

How do I test if a Universal Link works?

On an iPhone with the app installed, paste the full campaign URL into Notes or Messages and tap it. It should open the app. Typing it into Safari's address bar always loads the web page, so it is not a valid test.

I fixed the AASA file but it still opens Safari. Why?

Apple's CDN caches the file, and devices fetch it when the app is installed or updated. Wait, then reinstall the app on a test phone. Also confirm the file has no redirect and the app has the correct entitlement.

Can FunnelGuard tell me if my campaign URL is excluded?

Yes. It reads the paths in your apple-app-site-association file and checks them against your campaign URL, then alerts you if the path is excluded or missing. It does not replace a tap test on a real iPhone.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: app_site_association paths, deep_link.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.