iOS Install Attribution
When someone taps one of your tracking links and then installs your iPhone app, Helm can tell you which link, and which button or source on that link, brought them in. This page explains what each device sees when it taps a link, how to set up a new project, what your app needs, and how to make the App Store buttons on your own website count.
What you're about to do, in plain English
You turn on one setting in Helm, add Apple's Paste button to your app with the Helm iOS SDK, and, if you have a website, add one script tag and one attribute to its App Store buttons. The rest of this page explains why each piece is needed and how to set it up.
Why iOS needs extra steps
On Android, Google Play passes the tracking link's details to your app after the install (the install referrer), so Helm attributes every Android install exactly, with nothing extra to set up.
The Apple App Store passes nothing like that to your app. Apple also forbids collecting device details, such as screen size and time zone, to recognize the same phone later. So Helm uses two methods that Apple allows:
- Clipboard handoff. When the person taps a "Download on the App Store" button, the page copies a short, one-time web address, the handoff URL, to the clipboard. After the install, your app shows Apple's Paste button. One tap on it sends the code to Helm, which records the exact link that was tapped. Apple's Paste button shows no permission pop-up, because iOS treats the tap itself as the person's permission.
- Apple Ads. If you run Apple Ads campaigns, the iOS SDK asks Apple whether the install came from an ad and records the campaign, ad group and keyword. It needs no setup in Helm and shows no prompt.
Every App Store link from Helm also carries your tracking link's slug as Apple's
campaign token (ct=). That gives you install counts per tracking link in App
Store Connect, but not per person.
What each device sees when it taps a link
This depends on one setting per destination, iOS clipboard attribution. It only exists for App Store and Smart Store destinations. A Smart Store link works out the device from the browser first, and only then decides what to show.
| Device | Setting off | Setting on |
|---|---|---|
| iPhone or iPad | Goes to the App Store automatically. No tap needed. | Sees Helm's "Download on the App Store" page and taps its button. The tap copies the handoff URL and opens the App Store. |
| Android (Smart Store links) | Goes to Google Play automatically. | Goes to Google Play automatically. The setting has no effect on Android. |
| Computer or other device (Smart Store links) | Sees a page with both store buttons: Helm's "Get the App" page, or your own Download Page design if you published one. | |
A Smart Store link uses clipboard attribution when the setting is on for either the Smart Store destination or the App Store destination that the link sends iPhones to. If your project has more than one App Store destination, Smart Store links use the first one in alphabetical order by name. With the setting on, an iPhone never goes to the App Store automatically: the person always sees the download page and taps its button, so the handoff URL is copied.
Turning the setting on changes what iPhone users see on every link that uses that destination. Turning it on for the App Store destination also changes every Smart Store link in the project. Decide whether you want the extra tap on all of them, including links in paid ads.
Step 1 — Add a vanity domain
A vanity domain is a web address of your own that serves your Helm links, such as
go.example.com. Handoff URLs use it, and the website script in Step 5 is
served from it, so it is required for website buttons.
- Open your project in Helm. In the sidebar, under Marketing, click Vanity Domains.
- Add your domain, for example
go.example.com, and point its DNS at Helm as the page explains. Vanity Domains explains each step.
Step 2 — Turn on iOS clipboard attribution
- In the sidebar, under Marketing, click Tracking Links, then open the Destinations tab.
- If you have no App Store destination yet, add one with your app's App Store URL. For one link that sends iPhones and Android phones to the right store, add a Play Store destination and a Smart Store destination too.
- In the iOS clipboard attribution column, turn the setting on for the destination your links use.
Step 3 — Create tracking links
Create a tracking link for each place you share your app, and choose the destination from
Step 2. Give your website its own tracking link (for example with the slug
website), so website installs are counted separately from social posts or
ads.
To tell buttons or sources apart within one link, turn on wildcard tokens
for the link. Then anything after the slug becomes a label, such as
go.example.com/website/hero/ and go.example.com/website/footer/.
Step 4 — Add the Paste button to your app
Add the Helm iOS SDK, version 1.8.0 or later, and call Helm.configure(...) at
launch. Apple Ads attribution then runs on its own. For the clipboard handoff, the Paste
button needs iOS 16 or later:
-
On first launch, ask the SDK whether the clipboard holds a URL. This check shows no prompt and no "pasted from" notice:
if await Helm.attribution.hasClipboardHandoff() { // Show your "Paste to continue" screen. } -
If it does, show a screen with the SDK's Paste button. In SwiftUI, use
HelmPasteButton:HelmPasteButton { result in // Move on to your next screen, whatever the result. }In UIKit, use
Helm.attribution.makePasteControl(configuration:onResult:). - Give the screen a Skip button too. Every result, including no match, means "move on". None is an error to show the person.
The SDK's README has the full SwiftUI and UIKit examples and describes every result.
Step 5 — Make your own website's App Store buttons count
Without this step, an iPhone user who taps the App Store button on your own website lands on Helm's download page and has to tap a second button. With it, one tap copies the handoff URL and opens the App Store. It works on any website, including WordPress, Webflow and Helm landing pages.
Helm serves one script, handoff.js, on every vanity domain. It contains
nothing specific to your project, so there is nothing to generate. Helm knows the project
from the vanity domain the script is loaded from, and the tracking link from each button.
-
Add this tag to the page, using your own vanity domain. Put it in the page's
<head>or just before</body>:<script src="https://go.example.com/_helm/handoff.js" defer></script>On a Helm landing page served from the vanity domain itself,
src="/_helm/handoff.js"also works. -
On each App Store button, set
hrefto the tracking link URL and add adata-helm-linkattribute with the tracking link's slug, plus a token if you use one:<a href="https://go.example.com/website/hero/" data-helm-link="website/hero">Download on the App Store</a>In Elementor, open the button's Advanced tab, then Attributes, and enter
data-helm-link|website/hero.
What the script does when someone taps a marked button:
- On anything other than an iPhone or iPad, it does nothing, and the button follows its
hrefas usual. - On an iPhone, it sends one request to
https://go.example.com/_helm/handoff/website/hero/. Helm records the tap on that tracking link and creates the handoff code. - In the same tap, it starts copying the handoff URL to the clipboard. Safari only allows a copy that starts during the tap, so the script starts it at once and Helm's answer fills it in.
- It opens the App Store when the copy finishes, or after 3 seconds at most.
If the script cannot load, the browser is too old, or the destination's setting is off,
the button simply follows its href, so it never stops working.
What Helm records
- Each tap on the download page button or a marked website button counts as a hit on the tracking link, with its token.
- When the app pastes the code, Helm records an install attributed to that hit, and later sign-ups and subscriptions follow it.
- An install can have both a clipboard and an Apple Ads attribution. Helm makes the one with the later touch the primary one, which later events use.
Through Helm's AI tools, get_attribution_funnel shows download pages shown,
buttons tapped and codes redeemed, get_recent_attributions lists recent
installs, and get_apple_ads_installs breaks Apple Ads installs down by
keyword, ad group or campaign.
Limits
- One tap, one install. Each handoff code can be redeemed once, within 24 hours of the tap.
- The clipboard is shared. If the person copies something else before opening your app, the code is gone and the install is not attributed. Apple's Universal Clipboard can also replace it from a nearby Mac or iPad.
- The person must tap Paste. Installs where they skip the Paste screen are not attributed. Branch, a large attribution company that uses the same method, reports that most people do tap it.
- iOS 16 or later for the Paste button. On iOS 15,
hasClipboardHandoff()returnsfalse. - App Store and Smart Store links only. Links to websites or other pages do not use the clipboard.
Troubleshooting
iPhones still go straight to the App Store
The setting is off for the destination the link uses. For a Smart Store link, the setting must be on for the Smart Store destination or for the App Store destination the link uses (the first App Store destination by name). Turning it on for either one is enough.
The website button still shows Helm's download page
- Check that the script tag's
srcuses your vanity domain and ends in/_helm/handoff.js. Open that address in a browser: it should show JavaScript. - Check that the button has
data-helm-link, and that its value is an existing, active tracking link's slug, with an optional token after a/. - Check that the tracking link uses an App Store or Smart Store destination with the setting on.
The app never shows the Paste screen
- Check that the app calls
hasClipboardHandoff()on first launch and runs on iOS 16 or later. - The SDK stops offering the Paste screen once a code has been redeemed on that install, so test with a fresh install.
- Make sure nothing else was copied between the tap and opening the app.
The paste says the code expired or was already used
Codes last 24 hours and work once. Tap the link again to get a new code.