[{"data":1,"prerenderedAt":1612},["ShallowReactive",2],{"navigation":3,"\u002Fdocs\u002Fgetting-started\u002Fios-attribution\u002Fpasteboard":81,"\u002Fdocs\u002Fgetting-started\u002Fios-attribution\u002Fpasteboard-surround":1607},[4],{"title":5,"path":6,"stem":7,"children":8},"Docs","\u002Fdocs","docs",[9,13,61],{"title":10,"path":6,"stem":11,"icon":12},"Introduction","docs\u002Findex","i-lucide-house",{"title":14,"icon":15,"path":16,"stem":17,"children":18,"page":15},"Getting Started",false,"\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[19,24,29,34,51,56],{"title":20,"path":21,"stem":22,"icon":23},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F1.getting-started\u002F1.installation","i-lucide-download",{"title":25,"path":26,"stem":27,"icon":28},"Creating links","\u002Fdocs\u002Fgetting-started\u002Flinks","docs\u002F1.getting-started\u002F2.links","i-lucide-link",{"title":30,"path":31,"stem":32,"icon":33},"Testing","\u002Fdocs\u002Fgetting-started\u002Ftesting","docs\u002F1.getting-started\u002F3.testing","i-lucide-flask-conical",{"title":35,"path":36,"stem":37,"children":38,"icon":40},"iOS attribution","\u002Fdocs\u002Fgetting-started\u002Fios-attribution","docs\u002F1.getting-started\u002F4.ios-attribution\u002Findex",[39,41,46],{"title":35,"path":36,"stem":37,"icon":40},"i-lucide-smartphone",{"title":42,"path":43,"stem":44,"icon":45},"App Clips","\u002Fdocs\u002Fgetting-started\u002Fios-attribution\u002Fapp-clips","docs\u002F1.getting-started\u002F4.ios-attribution\u002F1.app-clips","i-lucide-app-window",{"title":47,"path":48,"stem":49,"icon":50},"Pasteboard","\u002Fdocs\u002Fgetting-started\u002Fios-attribution\u002Fpasteboard","docs\u002F1.getting-started\u002F4.ios-attribution\u002F2.pasteboard","i-lucide-clipboard-paste",{"title":52,"path":53,"stem":54,"icon":55},"Analytics, MAU & Plans","\u002Fdocs\u002Fgetting-started\u002Fanalytics","docs\u002F1.getting-started\u002F5.analytics","i-lucide-chart-line",{"title":57,"path":58,"stem":59,"icon":60},"Workspaces & Team Access","\u002Fdocs\u002Fgetting-started\u002Fworkspaces","docs\u002F1.getting-started\u002F6.workspaces","i-lucide-building-2",{"title":62,"icon":63,"path":64,"stem":65,"children":66,"page":15},"SDKs","i-lucide-package","\u002Fdocs\u002Fsdks","docs\u002F2.sdks",[67],{"title":68,"icon":69,"path":70,"stem":71,"children":72,"page":15},"Capacitor","i-simple-icons-capacitor","\u002Fdocs\u002Fsdks\u002Fcapacitor","docs\u002F2.sdks\u002F1.capacitor",[73,76],{"title":20,"path":74,"stem":75,"icon":23},"\u002Fdocs\u002Fsdks\u002Fcapacitor\u002Finstallation","docs\u002F2.sdks\u002F1.capacitor\u002F1.installation",{"title":77,"path":78,"stem":79,"icon":80},"API reference","\u002Fdocs\u002Fsdks\u002Fcapacitor\u002Fapi","docs\u002F2.sdks\u002F1.capacitor\u002F2.api","i-lucide-code",{"id":82,"title":47,"body":83,"description":1600,"extension":1601,"links":1602,"meta":1603,"navigation":1604,"path":48,"seo":1605,"stem":49,"__hash__":1606},"docs\u002Fdocs\u002F1.getting-started\u002F4.ios-attribution\u002F2.pasteboard.md",{"type":84,"value":85,"toc":1584},"minimark",[86,104,112,115,124,151,166,169,186,429,434,449,546,549,553,563,615,743,746,776,779,946,950,953,1046,1176,1185,1271,1280,1287,1298,1307,1310,1411,1418,1427,1437,1464,1470,1498,1502,1509,1513,1571,1580],[87,88,89,90,94,95,99,100,103],"p",{},"Pasteboard attribution carries the click id through the App Store boundary on the device clipboard. When a visitor taps your landing page's ",[91,92,93],"strong",{},"Get the app"," CTA, Attriv writes a URL-shaped payload — ",[96,97,98],"code",{},"https:\u002F\u002F\u003Cyour-link-domain>\u002Fc\u002F\u003CclickId>"," — to the clipboard. After the App Store detour, your app's first launch finds the payload, validates it, and claims the click: ",[96,101,102],{},"matchType: \"pasteboard\"",", a deterministic tier.",[87,105,106,107,111],{},"The payload is URL-shaped on purpose: it lets the SDK silently detect a recoverable link ",[108,109,110],"em",{},"without"," reading clipboard contents. Claims are window-bounded and host-validated against your verified link domains server-side, so unrelated URL-shaped clipboard content can't claim attribution.",[87,113,114],{},"There are two ways the SDK can get the payload off the clipboard — they differ entirely in what the user sees:",[116,117,119,120,123],"h2",{"id":118},"the-paste-control-control-default-recommended","The paste control — ",[96,121,122],{},"\"control\""," (default, recommended)",[87,125,126,129,130,139,140,142,143,146,147,150],{},[96,127,128],{},"Attriv.showPasteControl()"," renders a native card — your heading, your caption, and Apple's ",[131,132,136],"a",{"href":133,"rel":134},"https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Fuikit\u002Fuipastecontrol",[135],"nofollow",[96,137,138],{},"UIPasteControl"," system button (iOS 16+). ",[96,141,138],{}," is a system-rendered control that delivers clipboard contents only on an explicit user tap: the tap is the consent, so ",[91,144,145],{},"no iOS paste prompt ever fires",". The system draws the button itself — a localized \"Paste\" label plus the source app's icon, so the user can see the content came from Safari. No entitlements or ",[96,148,149],{},"Info.plist"," changes required.",[87,152,153,154,157,158,161,162,165],{},"Because the button is inert when the clipboard holds nothing compatible, gate it on the silent probe — the SDK returns ",[96,155,156],{},"shown: false, reason: \"no_url\""," when there is nothing URL-shaped to recover. Show it while ",[96,159,160],{},"getAttribution()"," reports ",[96,163,164],{},"organic",", hide it once attributed; a skipped button stays retryable across launches (unlike a denied prompt, \"didn't tap yet\" is recoverable).",[87,167,168],{},"Two privacy properties worth knowing:",[170,171,172,180],"ul",{},[173,174,175,176,179],"li",{},"Clipboard content that doesn't carry an Attriv payload is validated and discarded ",[91,177,178],{},"on-device"," — nothing unrelated is transmitted.",[173,181,182,183,185],{},"On iOS \u003C 16 there is no paste prompt and no ",[96,184,138],{},"; the mode degrades to a plain read — still prompt-free by different means.",[187,188,193],"pre",{"className":189,"code":190,"language":191,"meta":192,"style":192},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F Tap outcomes arrive via onPasteClaim — showPasteControl resolves once the\n\u002F\u002F card renders; a skipped card is normal and settles nothing.\nAttriv.onPasteClaim(({ claimed, attribution }) => {\n  if (claimed) {\n    \u002F\u002F attribution — route to link.data?.$deeplink_path\n  }\n});\n\nconst attribution = await Attriv.getAttribution();\nif (attribution.matchType === \"organic\") {\n  await Attriv.showPasteControl({\n    title: \"Open the link that brought you here\",\n    caption: \"Your link is waiting on the clipboard — only the link is read.\",\n  });\n}\n","ts","",[96,194,195,204,210,251,271,277,283,295,302,330,360,377,396,413,423],{"__ignoreMap":192},[196,197,200],"span",{"class":198,"line":199},"line",1,[196,201,203],{"class":202},"sHwdD","\u002F\u002F Tap outcomes arrive via onPasteClaim — showPasteControl resolves once the\n",[196,205,207],{"class":198,"line":206},2,[196,208,209],{"class":202},"\u002F\u002F card renders; a skipped card is normal and settles nothing.\n",[196,211,213,217,221,225,228,231,235,238,241,244,248],{"class":198,"line":212},3,[196,214,216],{"class":215},"sTEyZ","Attriv",[196,218,220],{"class":219},"sMK4o",".",[196,222,224],{"class":223},"s2Zo4","onPasteClaim",[196,226,227],{"class":215},"(",[196,229,230],{"class":219},"({",[196,232,234],{"class":233},"sHdIc"," claimed",[196,236,237],{"class":219},",",[196,239,240],{"class":233}," attribution",[196,242,243],{"class":219}," })",[196,245,247],{"class":246},"spNyl"," =>",[196,249,250],{"class":219}," {\n",[196,252,254,258,262,265,268],{"class":198,"line":253},4,[196,255,257],{"class":256},"s7zQu","  if",[196,259,261],{"class":260},"swJcz"," (",[196,263,264],{"class":215},"claimed",[196,266,267],{"class":260},") ",[196,269,270],{"class":219},"{\n",[196,272,274],{"class":198,"line":273},5,[196,275,276],{"class":202},"    \u002F\u002F attribution — route to link.data?.$deeplink_path\n",[196,278,280],{"class":198,"line":279},6,[196,281,282],{"class":219},"  }\n",[196,284,286,289,292],{"class":198,"line":285},7,[196,287,288],{"class":219},"}",[196,290,291],{"class":215},")",[196,293,294],{"class":219},";\n",[196,296,298],{"class":198,"line":297},8,[196,299,301],{"emptyLinePlaceholder":300},true,"\n",[196,303,305,308,311,314,317,320,322,325,328],{"class":198,"line":304},9,[196,306,307],{"class":246},"const",[196,309,310],{"class":215}," attribution ",[196,312,313],{"class":219},"=",[196,315,316],{"class":256}," await",[196,318,319],{"class":215}," Attriv",[196,321,220],{"class":219},[196,323,324],{"class":223},"getAttribution",[196,326,327],{"class":215},"()",[196,329,294],{"class":219},[196,331,333,336,339,341,344,347,350,353,356,358],{"class":198,"line":332},10,[196,334,335],{"class":256},"if",[196,337,338],{"class":215}," (attribution",[196,340,220],{"class":219},[196,342,343],{"class":215},"matchType ",[196,345,346],{"class":219},"===",[196,348,349],{"class":219}," \"",[196,351,164],{"class":352},"sfazB",[196,354,355],{"class":219},"\"",[196,357,267],{"class":215},[196,359,270],{"class":219},[196,361,363,366,368,370,373,375],{"class":198,"line":362},11,[196,364,365],{"class":256},"  await",[196,367,319],{"class":215},[196,369,220],{"class":219},[196,371,372],{"class":223},"showPasteControl",[196,374,227],{"class":260},[196,376,270],{"class":219},[196,378,380,383,386,388,391,393],{"class":198,"line":379},12,[196,381,382],{"class":260},"    title",[196,384,385],{"class":219},":",[196,387,349],{"class":219},[196,389,390],{"class":352},"Open the link that brought you here",[196,392,355],{"class":219},[196,394,395],{"class":219},",\n",[196,397,399,402,404,406,409,411],{"class":198,"line":398},13,[196,400,401],{"class":260},"    caption",[196,403,385],{"class":219},[196,405,349],{"class":219},[196,407,408],{"class":352},"Your link is waiting on the clipboard — only the link is read.",[196,410,355],{"class":219},[196,412,395],{"class":219},[196,414,416,419,421],{"class":198,"line":415},14,[196,417,418],{"class":219},"  }",[196,420,291],{"class":260},[196,422,294],{"class":219},[196,424,426],{"class":198,"line":425},15,[196,427,428],{"class":219},"}\n",[430,431,433],"h3",{"id":432},"positioning-and-customizing-the-card","Positioning and customizing the card",[87,435,436,437,440,441,444,445,448],{},"The card is a ",[91,438,439],{},"native overlay rendered on top of the webview"," — not a DOM element. You cannot put it ",[108,442,443],{},"inside"," a ",[96,446,447],{},"\u003Cdiv>"," or style it with CSS, and it does not scroll with page content. What you control:",[450,451,452,465],"table",{},[453,454,455],"thead",{},[456,457,458,462],"tr",{},[459,460,461],"th",{},"Option",[459,463,464],{},"Effect",[466,467,468,479,493,514,536],"tbody",{},[456,469,470,476],{},[471,472,473],"td",{},[96,474,475],{},"title",[471,477,478],{},"Heading above the button — your text, your language",[456,480,481,486],{},[471,482,483],{},[96,484,485],{},"caption",[471,487,488,489,492],{},"Subline under the heading — ",[108,490,491],{},"your"," explanation of what the button does",[456,494,495,500],{},[471,496,497],{},[96,498,499],{},"displayMode",[471,501,502,505,506,509,510,513],{},[96,503,504],{},"\"iconAndLabel\""," (default), ",[96,507,508],{},"\"iconOnly\""," or ",[96,511,512],{},"\"labelOnly\""," — the system button's own look. Its label is always the localized \"Paste\"; it cannot be reworded",[456,515,516,525],{},[471,517,518,521,522],{},[96,519,520],{},"x"," \u002F ",[96,523,524],{},"y",[471,526,527,528,531,532,535],{},"Card top-left offset in ",[91,529,530],{},"CSS pixels"," from the webview's top-left — the same space ",[96,533,534],{},"getBoundingClientRect()"," returns. Defaults: horizontally centered in the safe area, ~70% down the screen",[456,537,538,543],{},[471,539,540],{},[96,541,542],{},"width",[471,544,545],{},"Card width in CSS pixels (default 320), clamped inside the safe area with 16 px margins",[87,547,548],{},"The card chrome (background, radius, fonts) follows the system theme — light\u002Fdark is automatic; custom colors are not supported.",[430,550,552],{"id":551},"placing-it-in-a-div-the-placeholder-pattern","\"Placing it in a div\" — the placeholder pattern",[87,554,555,556,558,559,562],{},"You cannot put the control ",[108,557,443],{}," DOM, but you can align it ",[108,560,561],{},"over"," one. Reserve a slot in your layout and measure it:",[187,564,568],{"className":565,"code":566,"language":567,"meta":192,"style":192},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003C!-- your page -->\n\u003Cdiv id=\"attriv-paste-slot\" style=\"height: 140px\">\u003C\u002Fdiv>\n","html",[96,569,570,575],{"__ignoreMap":192},[196,571,572],{"class":198,"line":199},[196,573,574],{"class":202},"\u003C!-- your page -->\n",[196,576,577,580,583,586,588,590,593,595,598,600,602,605,607,610,612],{"class":198,"line":206},[196,578,579],{"class":219},"\u003C",[196,581,582],{"class":260},"div",[196,584,585],{"class":246}," id",[196,587,313],{"class":219},[196,589,355],{"class":219},[196,591,592],{"class":352},"attriv-paste-slot",[196,594,355],{"class":219},[196,596,597],{"class":246}," style",[196,599,313],{"class":219},[196,601,355],{"class":219},[196,603,604],{"class":352},"height: 140px",[196,606,355],{"class":219},[196,608,609],{"class":219},">\u003C\u002F",[196,611,582],{"class":260},[196,613,614],{"class":219},">\n",[187,616,618],{"className":189,"code":617,"language":191,"meta":192,"style":192},"const rect = document.getElementById(\"attriv-paste-slot\")!.getBoundingClientRect();\nawait Attriv.showPasteControl({\n  x: rect.left,\n  y: rect.top,\n  width: rect.width,\n  title: \"Open the link that brought you here\",\n});\n",[96,619,620,657,672,689,705,720,735],{"__ignoreMap":192},[196,621,622,624,627,629,632,634,637,639,641,643,645,647,650,653,655],{"class":198,"line":199},[196,623,307],{"class":246},[196,625,626],{"class":215}," rect ",[196,628,313],{"class":219},[196,630,631],{"class":215}," document",[196,633,220],{"class":219},[196,635,636],{"class":223},"getElementById",[196,638,227],{"class":215},[196,640,355],{"class":219},[196,642,592],{"class":352},[196,644,355],{"class":219},[196,646,291],{"class":215},[196,648,649],{"class":219},"!.",[196,651,652],{"class":223},"getBoundingClientRect",[196,654,327],{"class":215},[196,656,294],{"class":219},[196,658,659,662,664,666,668,670],{"class":198,"line":206},[196,660,661],{"class":256},"await",[196,663,319],{"class":215},[196,665,220],{"class":219},[196,667,372],{"class":223},[196,669,227],{"class":215},[196,671,270],{"class":219},[196,673,674,677,679,682,684,687],{"class":198,"line":212},[196,675,676],{"class":260},"  x",[196,678,385],{"class":219},[196,680,681],{"class":215}," rect",[196,683,220],{"class":219},[196,685,686],{"class":215},"left",[196,688,395],{"class":219},[196,690,691,694,696,698,700,703],{"class":198,"line":253},[196,692,693],{"class":260},"  y",[196,695,385],{"class":219},[196,697,681],{"class":215},[196,699,220],{"class":219},[196,701,702],{"class":215},"top",[196,704,395],{"class":219},[196,706,707,710,712,714,716,718],{"class":198,"line":273},[196,708,709],{"class":260},"  width",[196,711,385],{"class":219},[196,713,681],{"class":215},[196,715,220],{"class":219},[196,717,542],{"class":215},[196,719,395],{"class":219},[196,721,722,725,727,729,731,733],{"class":198,"line":279},[196,723,724],{"class":260},"  title",[196,726,385],{"class":219},[196,728,349],{"class":219},[196,730,390],{"class":352},[196,732,355],{"class":219},[196,734,395],{"class":219},[196,736,737,739,741],{"class":198,"line":285},[196,738,288],{"class":219},[196,740,291],{"class":215},[196,742,294],{"class":219},[87,744,745],{},"This makes the card render exactly over the placeholder — to the user it looks like part of the page. Two rules follow from the overlay model:",[170,747,748,762],{},[173,749,750,753,754,757,758,761],{},[91,751,752],{},"It does not scroll."," If the user can scroll the placeholder away, hide the card (",[96,755,756],{},"Attriv.hidePasteControl()",") or call ",[96,759,760],{},"showPasteControl()"," again with fresh coordinates — repeated calls replace the previous card, so repositioning is cheap.",[173,763,764,772,773,775],{},[91,765,766,768,769,771],{},[96,767,520],{},"\u002F",[96,770,524],{}," are CSS pixels measured from the webview's top-left"," — the same coordinate space ",[96,774,534],{}," returns, so the card lands exactly on the measured element.",[87,777,778],{},"Two typical layouts:",[187,780,782],{"className":189,"code":781,"language":191,"meta":192,"style":192},"\u002F\u002F 1. Bottom sheet style (default position) — good for the first screen:\nawait Attriv.showPasteControl({ title: \"…\", caption: \"…\" });\n\n\u002F\u002F 2. Inline with your UI — card sits exactly where the placeholder is:\nconst rect = document.getElementById(\"attriv-paste-slot\")!.getBoundingClientRect();\nawait Attriv.showPasteControl({ x: rect.left, y: rect.top, width: rect.width, title: \"…\" });\n",[96,783,784,789,836,840,845,877],{"__ignoreMap":192},[196,785,786],{"class":198,"line":199},[196,787,788],{"class":202},"\u002F\u002F 1. Bottom sheet style (default position) — good for the first screen:\n",[196,790,791,793,795,797,799,801,804,807,809,811,814,816,818,821,823,825,827,829,832,834],{"class":198,"line":206},[196,792,661],{"class":256},[196,794,319],{"class":215},[196,796,220],{"class":219},[196,798,372],{"class":223},[196,800,227],{"class":215},[196,802,803],{"class":219},"{",[196,805,806],{"class":260}," title",[196,808,385],{"class":219},[196,810,349],{"class":219},[196,812,813],{"class":352},"…",[196,815,355],{"class":219},[196,817,237],{"class":219},[196,819,820],{"class":260}," caption",[196,822,385],{"class":219},[196,824,349],{"class":219},[196,826,813],{"class":352},[196,828,355],{"class":219},[196,830,831],{"class":219}," }",[196,833,291],{"class":215},[196,835,294],{"class":219},[196,837,838],{"class":198,"line":212},[196,839,301],{"emptyLinePlaceholder":300},[196,841,842],{"class":198,"line":253},[196,843,844],{"class":202},"\u002F\u002F 2. Inline with your UI — card sits exactly where the placeholder is:\n",[196,846,847,849,851,853,855,857,859,861,863,865,867,869,871,873,875],{"class":198,"line":273},[196,848,307],{"class":246},[196,850,626],{"class":215},[196,852,313],{"class":219},[196,854,631],{"class":215},[196,856,220],{"class":219},[196,858,636],{"class":223},[196,860,227],{"class":215},[196,862,355],{"class":219},[196,864,592],{"class":352},[196,866,355],{"class":219},[196,868,291],{"class":215},[196,870,649],{"class":219},[196,872,652],{"class":223},[196,874,327],{"class":215},[196,876,294],{"class":219},[196,878,879,881,883,885,887,889,891,894,896,898,900,902,904,907,909,911,913,915,917,920,922,924,926,928,930,932,934,936,938,940,942,944],{"class":198,"line":279},[196,880,661],{"class":256},[196,882,319],{"class":215},[196,884,220],{"class":219},[196,886,372],{"class":223},[196,888,227],{"class":215},[196,890,803],{"class":219},[196,892,893],{"class":260}," x",[196,895,385],{"class":219},[196,897,681],{"class":215},[196,899,220],{"class":219},[196,901,686],{"class":215},[196,903,237],{"class":219},[196,905,906],{"class":260}," y",[196,908,385],{"class":219},[196,910,681],{"class":215},[196,912,220],{"class":219},[196,914,702],{"class":215},[196,916,237],{"class":219},[196,918,919],{"class":260}," width",[196,921,385],{"class":219},[196,923,681],{"class":215},[196,925,220],{"class":219},[196,927,542],{"class":215},[196,929,237],{"class":219},[196,931,806],{"class":260},[196,933,385],{"class":219},[196,935,349],{"class":219},[196,937,813],{"class":352},[196,939,355],{"class":219},[196,941,831],{"class":219},[196,943,291],{"class":215},[196,945,294],{"class":219},[430,947,949],{"id":948},"centering-the-card-on-screen","Centering the card on screen",[87,951,952],{},"For a dedicated screen — e.g. a blank\u002Fwhite first-launch page whose only job is the claim — center a placeholder with CSS and let the card land on it. This is exact regardless of how tall the card turns out (title + caption length varies):",[187,954,956],{"className":565,"code":955,"language":567,"meta":192,"style":192},"\u003C!-- a full-screen page: white background, card dead center -->\n\u003Cdiv\n  id=\"paste-screen\"\n  style=\"height: 100vh; display: flex; align-items: center; justify-content: center; background: #fff\"\n>\n  \u003Cdiv id=\"attriv-paste-slot\" style=\"width: 320px; height: 150px\">\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n",[96,957,958,963,970,985,999,1003,1037],{"__ignoreMap":192},[196,959,960],{"class":198,"line":199},[196,961,962],{"class":202},"\u003C!-- a full-screen page: white background, card dead center -->\n",[196,964,965,967],{"class":198,"line":206},[196,966,579],{"class":219},[196,968,969],{"class":260},"div\n",[196,971,972,975,977,979,982],{"class":198,"line":212},[196,973,974],{"class":246},"  id",[196,976,313],{"class":219},[196,978,355],{"class":219},[196,980,981],{"class":352},"paste-screen",[196,983,984],{"class":219},"\"\n",[196,986,987,990,992,994,997],{"class":198,"line":253},[196,988,989],{"class":246},"  style",[196,991,313],{"class":219},[196,993,355],{"class":219},[196,995,996],{"class":352},"height: 100vh; display: flex; align-items: center; justify-content: center; background: #fff",[196,998,984],{"class":219},[196,1000,1001],{"class":198,"line":273},[196,1002,614],{"class":219},[196,1004,1005,1008,1010,1012,1014,1016,1018,1020,1022,1024,1026,1029,1031,1033,1035],{"class":198,"line":279},[196,1006,1007],{"class":219},"  \u003C",[196,1009,582],{"class":260},[196,1011,585],{"class":246},[196,1013,313],{"class":219},[196,1015,355],{"class":219},[196,1017,592],{"class":352},[196,1019,355],{"class":219},[196,1021,597],{"class":246},[196,1023,313],{"class":219},[196,1025,355],{"class":219},[196,1027,1028],{"class":352},"width: 320px; height: 150px",[196,1030,355],{"class":219},[196,1032,609],{"class":219},[196,1034,582],{"class":260},[196,1036,614],{"class":219},[196,1038,1039,1042,1044],{"class":198,"line":285},[196,1040,1041],{"class":219},"\u003C\u002F",[196,1043,582],{"class":260},[196,1045,614],{"class":219},[187,1047,1049],{"className":189,"code":1048,"language":191,"meta":192,"style":192},"const rect = document.getElementById(\"attriv-paste-slot\")!.getBoundingClientRect();\nawait Attriv.showPasteControl({\n  x: rect.left,\n  y: rect.top,\n  width: rect.width,\n  title: \"Open the link that brought you here\",\n  caption: \"Your link is waiting on the clipboard — only the link is read.\",\n});\n",[96,1050,1051,1083,1097,1111,1125,1139,1153,1168],{"__ignoreMap":192},[196,1052,1053,1055,1057,1059,1061,1063,1065,1067,1069,1071,1073,1075,1077,1079,1081],{"class":198,"line":199},[196,1054,307],{"class":246},[196,1056,626],{"class":215},[196,1058,313],{"class":219},[196,1060,631],{"class":215},[196,1062,220],{"class":219},[196,1064,636],{"class":223},[196,1066,227],{"class":215},[196,1068,355],{"class":219},[196,1070,592],{"class":352},[196,1072,355],{"class":219},[196,1074,291],{"class":215},[196,1076,649],{"class":219},[196,1078,652],{"class":223},[196,1080,327],{"class":215},[196,1082,294],{"class":219},[196,1084,1085,1087,1089,1091,1093,1095],{"class":198,"line":206},[196,1086,661],{"class":256},[196,1088,319],{"class":215},[196,1090,220],{"class":219},[196,1092,372],{"class":223},[196,1094,227],{"class":215},[196,1096,270],{"class":219},[196,1098,1099,1101,1103,1105,1107,1109],{"class":198,"line":212},[196,1100,676],{"class":260},[196,1102,385],{"class":219},[196,1104,681],{"class":215},[196,1106,220],{"class":219},[196,1108,686],{"class":215},[196,1110,395],{"class":219},[196,1112,1113,1115,1117,1119,1121,1123],{"class":198,"line":253},[196,1114,693],{"class":260},[196,1116,385],{"class":219},[196,1118,681],{"class":215},[196,1120,220],{"class":219},[196,1122,702],{"class":215},[196,1124,395],{"class":219},[196,1126,1127,1129,1131,1133,1135,1137],{"class":198,"line":273},[196,1128,709],{"class":260},[196,1130,385],{"class":219},[196,1132,681],{"class":215},[196,1134,220],{"class":219},[196,1136,542],{"class":215},[196,1138,395],{"class":219},[196,1140,1141,1143,1145,1147,1149,1151],{"class":198,"line":279},[196,1142,724],{"class":260},[196,1144,385],{"class":219},[196,1146,349],{"class":219},[196,1148,390],{"class":352},[196,1150,355],{"class":219},[196,1152,395],{"class":219},[196,1154,1155,1158,1160,1162,1164,1166],{"class":198,"line":285},[196,1156,1157],{"class":260},"  caption",[196,1159,385],{"class":219},[196,1161,349],{"class":219},[196,1163,408],{"class":352},[196,1165,355],{"class":219},[196,1167,395],{"class":219},[196,1169,1170,1172,1174],{"class":198,"line":297},[196,1171,288],{"class":219},[196,1173,291],{"class":215},[196,1175,294],{"class":219},[87,1177,1178,1179,1181,1182,1184],{},"Or without a placeholder — omit ",[96,1180,520],{}," (the card centers itself horizontally inside the safe area) and compute ",[96,1183,524],{}," from the viewport height. Card height depends on your copy (~120–180 px with title + caption), so subtract roughly half of it:",[187,1186,1188],{"className":189,"code":1187,"language":191,"meta":192,"style":192},"await Attriv.showPasteControl({\n  y: window.innerHeight \u002F 2 - 80, \u002F\u002F approximate vertical center\n  title: \"Open the link that brought you here\",\n  caption: \"Your link is waiting on the clipboard — only the link is read.\",\n});\n",[96,1189,1190,1204,1235,1249,1263],{"__ignoreMap":192},[196,1191,1192,1194,1196,1198,1200,1202],{"class":198,"line":199},[196,1193,661],{"class":256},[196,1195,319],{"class":215},[196,1197,220],{"class":219},[196,1199,372],{"class":223},[196,1201,227],{"class":215},[196,1203,270],{"class":219},[196,1205,1206,1208,1210,1213,1215,1218,1220,1224,1227,1230,1232],{"class":198,"line":206},[196,1207,693],{"class":260},[196,1209,385],{"class":219},[196,1211,1212],{"class":215}," window",[196,1214,220],{"class":219},[196,1216,1217],{"class":215},"innerHeight ",[196,1219,768],{"class":219},[196,1221,1223],{"class":1222},"sbssI"," 2",[196,1225,1226],{"class":219}," -",[196,1228,1229],{"class":1222}," 80",[196,1231,237],{"class":219},[196,1233,1234],{"class":202}," \u002F\u002F approximate vertical center\n",[196,1236,1237,1239,1241,1243,1245,1247],{"class":198,"line":212},[196,1238,724],{"class":260},[196,1240,385],{"class":219},[196,1242,349],{"class":219},[196,1244,390],{"class":352},[196,1246,355],{"class":219},[196,1248,395],{"class":219},[196,1250,1251,1253,1255,1257,1259,1261],{"class":198,"line":253},[196,1252,1157],{"class":260},[196,1254,385],{"class":219},[196,1256,349],{"class":219},[196,1258,408],{"class":352},[196,1260,355],{"class":219},[196,1262,395],{"class":219},[196,1264,1265,1267,1269],{"class":198,"line":273},[196,1266,288],{"class":219},[196,1268,291],{"class":215},[196,1270,294],{"class":219},[87,1272,1273,1274,1276,1277,1279],{},"The placeholder version is more precise — ",[96,1275,524],{}," anchors the card's ",[108,1278,702],{},", so the measured rect lands it dead center while raw math needs your card-height estimate to be right.",[116,1281,1283,1284],{"id":1282},"the-automatic-read-read","The automatic read — ",[96,1285,1286],{},"\"read\"",[87,1288,1289,1290,1293,1294,1297],{},"The legacy path, kept for maximum capture and for apps that can't host the button UI. On first launch the SDK silently probes the pasteboard's metadata (",[96,1291,1292],{},"probableWebURL",") — no prompt, no content access. If the clipboard holds a URL-shaped payload, the SDK performs the actual read, which fires ",[91,1295,1296],{},"one iOS paste prompt"," (\"Allow pasting?\"). If the user allows, the payload is claimed; if they deny, the click is lost — and under iOS's \"Ask every time\" setting the prompt can recur, which is exactly the prompt-galore the control mode avoids.",[116,1299,1301,1303,1304,1306],{"id":1300},"control-vs-read-the-tradeoff",[96,1302,122],{}," vs ",[96,1305,1286],{}," — the tradeoff",[87,1308,1309],{},"The two modes deliver the same payload; what differs is who owns the consent UX and what failure looks like.",[450,1311,1312,1327],{},[453,1313,1314],{},[456,1315,1316,1318,1323],{},[459,1317],{},[459,1319,1320,1322],{},[96,1321,122],{}," (default)",[459,1324,1325],{},[96,1326,1286],{},[466,1328,1329,1346,1364,1375,1396],{},[456,1330,1331,1334,1340],{},[471,1332,1333],{},"Host app work",[471,1335,1336,1337,1339],{},"You render the button — one ",[96,1338,760],{}," call on your first screen, plus the heading\u002Fcaption copy and the show-while-organic \u002F hide-once-attributed lifecycle",[471,1341,1342,1345],{},[91,1343,1344],{},"None"," — the read is fully automatic at first launch",[456,1347,1348,1351,1357],{},[471,1349,1350],{},"What the user sees",[471,1352,1353,1354,1356],{},"An in-app card with ",[108,1355,491],{}," explanation and the system paste button",[471,1358,1359,1360,1363],{},"An unsolicited system prompt (\"Allow pasting?\") with ",[91,1361,1362],{},"no context"," — iOS doesn't let anyone explain it",[456,1365,1366,1369,1372],{},[471,1367,1368],{},"User perception",[471,1370,1371],{},"Contextual — looks like part of your app, states its purpose, shows the Safari icon where the link came from",[471,1373,1374],{},"Suspicious — a generic modal asking for clipboard access right after install is exactly what a clipboard-sniffing app would do, so users correctly can't tell the difference",[456,1376,1377,1380,1386],{},[471,1378,1379],{},"Failure mode",[471,1381,1382,1385],{},[91,1383,1384],{},"Skipped"," — the user didn't tap yet; the button stays retryable across launches",[471,1387,1388,1391,1392,1395],{},[91,1389,1390],{},"Denied"," — the click is lost, and under iOS's \"Ask every time\" paste privacy setting the prompt can ",[108,1393,1394],{},"recur"," — prompt fatigue, not resolution",[456,1397,1398,1401,1404],{},[471,1399,1400],{},"Coverage risk",[471,1402,1403],{},"Only converts users who notice and choose to tap — placement and copy decide the tap rate",[471,1405,1406,1407,1410],{},"Reaches ",[108,1408,1409],{},"every"," user holding a payload (the modal is unmissable) — but every one of them must trust a context-free prompt",[87,1412,1413,1414,1417],{},"The psychology is asymmetric: the prompt is Apple's generic consent dialog — it can't say ",[108,1415,1416],{},"why"," your app wants the clipboard — so denials come from habit and suspicion, and there's no second chance. The control inverts this: you own the framing (\"Open the link that brought you here\"), the source-app icon legitimizes it, and \"didn't tap yet\" is recoverable forever.",[87,1419,1420,1421,1423,1424,1426],{},"The honest counterweight: ",[96,1422,122],{}," is only as good as the UI you put around it — a button buried on a later screen or captioned like a permission request will underperform. ",[96,1425,1286],{},"'s forced attention is the one thing it has going for it; if your app genuinely can't host the button UI, it remains the fallback.",[116,1428,1430,1433,1434],{"id":1429},"both-and-off",[96,1431,1432],{},"\"both\""," and ",[96,1435,1436],{},"\"off\"",[170,1438,1439,1444],{},[173,1440,1441,1443],{},[96,1442,1432],{}," — the automatic read at install, plus your app can offer the paste control for users who denied the prompt. Maximum coverage at the cost of the install-time prompt.",[173,1445,1446,1448,1449,1451,1452,1455,1456,1458,1459,1433,1461,1463],{},[96,1447,1436],{}," — no pasteboard mechanics at all: the app ignores the landing page payload and touches no clipboard API; ",[96,1450,372],{}," returns ",[96,1453,1454],{},"shown: false, reason: \"disabled\""," (as it does in ",[96,1457,1286],{}," mode — the control is only offered under ",[96,1460,122],{},[96,1462,1432],{},").",[87,1465,1466,1467,1469],{},"Two things ",[96,1468,1436],{}," does not change:",[170,1471,1472,1485],{},[173,1473,1474,1477,1478,1480,1481,1484],{},[91,1475,1476],{},"Fingerprint matching still runs."," It is always on and not configurable, so ",[96,1479,1436],{}," makes probabilistic matching the install path rather than removing it. See ",[131,1482,35],{"href":1483},"\u002Fdocs\u002Fgetting-started\u002Fios-attribution#the-three-signals"," for the full picture.",[173,1486,1487,1490,1491,1494,1495,1497],{},[91,1488,1489],{},"The landing page still writes the payload on the CTA tap."," That copy happens in Safari, outside your app's control, and is not gated by the ",[96,1492,1493],{},"pasteboard"," option — ",[96,1496,1436],{}," means your app never reads it, not that the clipboard stays untouched.",[116,1499,1501],{"id":1500},"reliability-under-the-hood","Reliability under the hood",[87,1503,1504,1505,1508],{},"The payload lifecycle is built to survive hostile conditions: it is ",[91,1506,1507],{},"queued before it is consumed"," (persisted before the install POST, cleared only after a successful claim), so an offline first launch retries on the next launch instead of losing the click. Server-side, claims are bounded by the click's attribution window and the payload host must match one of your app's verified link domains.",[116,1510,1512],{"id":1511},"what-to-do","What to do",[450,1514,1515,1524],{},[453,1516,1517],{},[456,1518,1519,1522],{},[459,1520,1521],{},"Mode",[459,1523,1333],{},[466,1525,1526,1541,1550,1562],{},[456,1527,1528,1532],{},[471,1529,1530,1322],{},[96,1531,122],{},[471,1533,1534,1535,1537,1538],{},"Call ",[96,1536,128],{}," on your first screen while attribution is organic — see ",[131,1539,1540],{"href":74},"SDK installation",[456,1542,1543,1547],{},[471,1544,1545],{},[96,1546,1286],{},[471,1548,1549],{},"Nothing — the read is automatic at first launch",[456,1551,1552,1556],{},[471,1553,1554],{},[96,1555,1432],{},[471,1557,1558,1559,1561],{},"Same as ",[96,1560,122],{}," — render the control for prompt deniers",[456,1563,1564,1568],{},[471,1565,1566],{},[96,1567,1436],{},[471,1569,1570],{},"Nothing — no clipboard involvement; installs fall to fingerprint or organic",[87,1572,1573,1574,1576,1577,220],{},"Full method and option reference: ",[131,1575,77],{"href":78},". For how the pasteboard composes with App Clips, see the ",[131,1578,1579],{"href":36},"iOS attribution overview",[1581,1582,1583],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":192,"searchDepth":199,"depth":206,"links":1585},[1586,1592,1594,1596,1598,1599],{"id":118,"depth":206,"text":1587,"children":1588},"The paste control — \"control\" (default, recommended)",[1589,1590,1591],{"id":432,"depth":212,"text":433},{"id":551,"depth":212,"text":552},{"id":948,"depth":212,"text":949},{"id":1282,"depth":206,"text":1593},"The automatic read — \"read\"",{"id":1300,"depth":206,"text":1595},"\"control\" vs \"read\" — the tradeoff",{"id":1429,"depth":206,"text":1597},"\"both\" and \"off\"",{"id":1500,"depth":206,"text":1501},{"id":1511,"depth":206,"text":1512},"Clipboard-based deferred deep linking on iOS — the consent-first paste control and the automatic read.","md",null,{},{"icon":50},{"title":47,"description":1600},"eAFMrwfln5RFFfem5RJgGSbVXeUVjIed3UlsdrLIK0Q",[1608,1610],{"title":42,"path":43,"stem":44,"description":1609,"icon":45,"children":-1},"Zero-clipboard, zero-prompt deterministic install attribution via App Clips.",{"title":52,"path":53,"stem":54,"description":1611,"icon":55,"children":-1},"How Attriv measures app activity, monthly active users, workspace quotas, snapshots, and analytics retention.",1796354788264]