Clipboard-based attribution
A web page copies an install token to the clipboard, and the app reads it on first launch.
In one line
Can check the clipboard for an install code, with a warning shown on newer phones
A web page copies an install token to the clipboard, and the app reads it on first launch.
A trick for iOS: the landing page puts a campaign token on the clipboard, then the app picks it up after install. It was blunted by paste banners and prompts.
What it can and can't do
What the user does: You tap an ad or link, install the app, then open it for the first time
It can
- Check text you copied when the app opens, to find an install token left by a web page
- Match your first launch to the ad or link you tapped
- Check for copied links on iPhone without a prompt, only to see if they exist
It cannot
- Do it unseen on Android 12 and newer; a small message shows
- Do it in the background on Android 10 and newer
- Get the text on iPhone 16 and newer without an Allow Paste prompt
- Keep old clipboard history; Android 13 clears it after a while
How it differs between platforms: iPhone shows a pasted from banner and an Allow Paste prompt. Android shows a toast. iPhone also has a Paste button that skips the prompt when you tap it.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Partial | Partial |
| First version | Not available | iOS 16.0 |
| Permission or entitlement | none | none |
| Protection level | none | prompt |
| How access is granted | none | prompt |
| What the user sees | Android 12+ shows a toast when an app reads clipboard text from another app; background reads blocked since 10 | iOS 14: 'pasted from' banner; iOS 16: Allow Paste prompt for programmatic reads |
| How long it lasts | Not listed | Not listed |
| How to take it back | Not listed | Not listed |
| Store policy | None listed | None listed |
| API | ClipboardManager.getPrimaryClip | UIPasteboard.general, hasURLs, detectPatterns (no prompt) |
| Notes | Android 13 auto-clears history after a time. | UIPasteControl lets users trigger a read with no prompt. |
Data you get
What comes back: Token or URL
Shape: string
How often: once
No individual data fields. The signal is the access itself.
Technical limits
- User-visible prompts or banners
- Needs the click page to write clipboard
The story
What it is
A web page copies a hidden code to your clipboard and the app reads it after install.
For you
You tap an ad, install an app, and the app opens already knowing which ad you came from. You might see a Pasted from Safari banner on iPhone. That banner is the visible sign of this trick.
For makers
Makers use it to prove which ad earned an install when no ad ID is allowed, and to land you on the right screen. Phones now show paste prompts, which makes the trick less common.
Where you see it
| Type | Example | Apps |
|---|---|---|
| ads | A mobile game ad sends you to a landing page that copies a campaign token, so the game can credit the ad and pay its partner. | None named |
| shopping | You click a shoe ad, install the app, and it opens on that exact shoe page. | None named |
| travel | A travel app uses the copied code to load the hotel deal you tapped before installing. | None named |
| analytics | A measurement company counts which of its customer campaigns brought real installs. | AppsFlyer, Adjust |
| security | Some bad actors copy fake tokens to claim credit for installs they did not drive. | None named |
| games | A game uses a referral code on the clipboard to give a friend reward when a new player installs. | None named |
Risks
- Reads something you copied on purpose
- Paste banner can look alarming
Android and iPhone in short
- Android: Android shows a toast when an app reads the clipboard in newer versions, and blocks background reads.
- iPhone: iOS 14 shows a paste banner, and iOS 16 asks permission to paste from other apps.
Good uses and abuse
Legitimate uses
- Deferred deep link when no referrer exists
Known abuse
- Stealing tokens placed by other apps
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 3 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 2 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2020-09, iPhone iOS 14: Paste banner when an app reads another app's clipboard
- 2021-10, Android Android 12 (API 31): Toast when an app reads clipboard
- 2022-09, iPhone iOS 16: Allow Paste prompt introduced
Related capabilities
Related
- Deferred deep links. Can send you to the right screen after install, using how you reached the store
Same idea on the web
- Async Clipboard read. Can see what you last copied, after you allow it or tap Paste
Sources
How well checked: Based on official documentation.