Skip to Content
Platform.Ontology

Clipboard-based attribution

A web page copies an install token to the clipboard, and the app reads it on first launch.

Used to track youTracking across apps and sitesInstall to click linkingAndroid and iPhoneBefore you installWhen the app opens

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

AndroidiPhone
StatusPartialPartial
First versionNot availableiOS 16.0
Permission or entitlementnonenone
Protection levelnoneprompt
How access is grantednoneprompt
What the user seesAndroid 12+ shows a toast when an app reads clipboard text from another app; background reads blocked since 10iOS 14: 'pasted from' banner; iOS 16: Allow Paste prompt for programmatic reads
How long it lastsNot listedNot listed
How to take it backNot listedNot listed
Store policyNone listedNone listed
APIClipboardManager.getPrimaryClipUIPasteboard.general, hasURLs, detectPatterns (no prompt)
NotesAndroid 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

TypeExampleApps
adsA 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
shoppingYou click a shoe ad, install the app, and it opens on that exact shoe page.None named
travelA travel app uses the copied code to load the hotel deal you tapped before installing.None named
analyticsA measurement company counts which of its customer campaigns brought real installs.AppsFlyer, Adjust
securitySome bad actors copy fake tokens to claim credit for installs they did not drive.None named
gamesA 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

ScoreValueMeaning
Sensitivity3 of 5How revealing the data is
Utility3 of 5How useful it is to honest apps
Friction2 of 5How much the user has to do
Fingerprint bitsNot ratedRough 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
  • Deferred deep links. Can send you to the right screen after install, using how you reached the store

Same idea on the web

Sources

How well checked: Based on official documentation.

On this page