Skip to content
Deep Linking · · 4 min read

Privacy-Preserving Attribution for Web-to-App Journeys

By Tolinku Staff
|
Privacy-Preserving Attribution for Web-to-App Journeys

A web-to-app journey crosses a boundary that attribution was never built for. The tap happens in a browser. The result happens in an app. Nothing carries identity across that line any more, and nothing is going to.

What you get instead are a few bits of data, deliberately coarse, arriving late. Knowing exactly how few bits changes what you should bother building.

How Little the Privacy Models Carry

Private Click Measurement is the clearest example, because its budget is written down. A click source can encode 256 distinct values, 0 to 255, which means up to 255 concurrent campaigns per destination.

The event on the other side is smaller still. Trigger data runs 00 to 15, so sixteen possible outcomes, and a priority value runs 00 to 63. That is your entire vocabulary for describing what the user did.

Sixteen outcomes is enough for a funnel step or a coarse value bucket. It is not enough for a product id, a basket value or a user. Design your event taxonomy against that number before you write any code.

One caveat worth carrying: the Private Click Measurement document is a Privacy Community Group draft dated 20 April 2021. Treat it as the shape of the model rather than a stable contract, and check current browser behaviour before you depend on a detail.

What You Can Still Resolve Exactly

The privacy models are not your only channel, and this is the part teams skip.

If the app is already installed, a Universal Link or an App Link carries your full URL, including every parameter on it, straight into the app. There is no budget and no delay. The user taps, your app opens, and you read the path and the query string you put there.

That covers the majority of web-to-app traffic for an established app. Treat it as the main path and the privacy-preserving models as the fallback, rather than the other way round.

// iOS: the whole URL arrives intact, parameters included
func application(_ application: UIApplication,
                 continue userActivity: NSUserActivity,
                 restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
    guard userActivity.activityType == NSUserActivityTypeBrowsingWeb,
          let url = userActivity.webpageURL else { return false }
    Tolinku.shared.handle(url)
    return true
}

The Install Gap Is the Only Hard Part

The difficult case is narrow: the app is not installed, the user goes to the store, and your parameters need to survive the trip.

On Android that is close to solved. The Play Install Referrer carries your original parameters through the install deterministically, so the link that caused the install is knowable rather than guessed.

On iOS there is no equivalent, so matching rests on coarse signals compared within a short window. Some matches cannot be made. A system worth trusting reports those as unmatched instead of allocating them somewhere convenient.

Build for Three Outcomes, Not One

Every web-to-app link ends in one of three states, and your handler needs an answer for each.

  1. App installed, link opens it directly, full parameters available.

    App not installed on Android, install happens, referrer carries parameters through.

    App not installed on iOS, install happens, parameters may or may not be recovered.

    Write the third branch first, because it is the one that will be exercised and the one teams forget. Decide what a sensible default destination is when you know nothing except that someone arrived.

    Keep the Verification Healthy

    None of this works if the link never reaches the app. On Android, domains verified at install are re-verified periodically in the background only from API level 35 onward. Below that, a failure persists until reinstall.

    Check that before you blame attribution for a gap. A domain that quietly stopped verifying looks exactly like a measurement problem and is not one.

    The same applies on iOS. Devices re-check Apple's associated domains CDN only about once a week after install, so a routing change you shipped on Monday may not reach every device until the following week. A dip in matched journeys right after a deploy is often propagation, not loss.

    What to Measure Instead

    Count resolutions, not identities. How many taps reached the destination they named, across each of the three branches above, is a number you can act on and one you own outright.

    Our plans meter exactly that, at 1,200 clicks a month on Free and 50,000, 250,000 and 500,000 on the paid tiers, with bot traffic filtered before anything counts. The mechanics of resolution are covered in our deep linking documentation and on the feature page.

    For background, the complete guide to deep linking sets out the landscape, types of deep links distinguishes the mechanisms, and how deep linking works walks the resolution path end to end.

Get deep linking tips in your inbox

One email per week. No spam.

Ready to add deep linking to your app?

Set up Universal Links, App Links, deferred deep linking and analytics in minutes. Free to start.