Adding Tether to an Existing Website Button
Your site already has a button to the App Store. Add one script tag, one attribute and an allowed site, and the tap copies a code your iPhone app reads.
Most apps already have a page that sends iPhone visitors to the App Store: a landing page, a campaign page, a blog post with a download button. That button is the best place to start a Tether handoff, because the person has already chosen to install.
This guide adds Tether to that button without rebuilding the page. The change is one script tag, one attribute, and one setting in the dashboard. Background on why the link needs help getting through the App Store is in Preserving an iPhone link through installation.
What the script does
When a visitor taps the button, the script asks WarpLink for a short code that names the link the person tapped, copies it to the clipboard, and lets the button carry on to the App Store. Your app reads the code when its read mode runs, and learns the link, its parameters and its campaign.
The page keeps its look, its copy and its analytics. The script runs only in iOS Safari, stores nothing on the device and sets no cookie.
Step 1: Turn Tether on for the app and the link
Links opt in to Tether. Open the link in the dashboard and switch Tether on. Set the iOS fallback URL of the link to the address of your page, as Step 4 shows.
Step 2: Add your page to the allowed sites
Open the app's Tether tab and add the address of your page to Allowed sites, for example https://acme.example. The script runs only on a listed site, and an app can list up to 50.
A request from a site outside the list answers 403 TETHER_SITE_NOT_ALLOWED. WarpLink records that site as observed, and the Tether tab shows when it last ran the script, so you can add it to the list or dismiss it.
Step 3: Add the script and mark the button
Paste the script into your page one time. It copies a code to the clipboard when a person taps your App Store button.
The script runs on iPhone and iPad. It does nothing on computers, on Android, or in the browser inside some apps, such as Instagram. It sets no cookie and saves no data in the browser.
Add data-warplink-handoff to the button or link that opens the App Store.
A link in the same tab, a form submit button and a button with type="button" wait for the copy.
Then the link opens, the form submits, or the App Store opens.
Let the script open the App Store. Do not open it from your own code.
Write one of your WarpLink links in data-warplink-link. Use the full link address, as in <handle>.aplnk.to/<slug>. The link must belong to this app and have Tether on.
No link yet? Create a link for this app in the dashboard, then turn on Use Tether for this link.
Replace YOUR_APP_ID with the App Store id of your app. Replace YOUR_LINK_SLUG with the slug of your link.
data-warplink-app holds your WarpLink app id, not the App Store id. The snippet already has it.
Write data-warplink-link even when only WarpLink links lead to your page. It is the backup when a redirect removes the tap marker.
After the install, the app reads the code and gets one WarpLink link. Your app code then opens its screen. The script picks the link in two cases.
Case 1: a WarpLink link sent the person to your page. WarpLink adds a tap marker to the page address. The marker names that link. The app gets that link.
The tap marker is #wl_rt=..., or ?wl_rt=... when the address already has a # part. You do not write it yourself.
Case 2: a direct visitor. The address has no valid tap marker, for example after a search or from a bookmark. The app gets the link in data-warplink-link.
Installs from the button link count as From your page in Results.
By default, the app gets the button link even when the person tapped no WarpLink link first.
To change this, open Direct visitors, under Advanced on the Settings tab of Tether. Choose Only after a link tap.
The app then gets the button link only if the person first tapped that link on a WarpLink page. A tap straight to your own page does not count. A visitor with no such tap gets no link from the code.
A link can use its own rule in the link editor.
A valid tap marker can name a link that is paused, expired or has Tether off. WarpLink then gives no code. It does not use the button link to make one.
An invitation link follows Referral handoff instead. It still gets a code.
Add the site of your page to Allowed sites. Write the site address only, such as https://example.com. WarpLink makes no code for a site that is not on the list.
<script async src="https://aplnk.to/handoff.js" data-warplink-app="YOUR_WARPLINK_APP_ID"></script>
<a href="https://apps.apple.com/app/idYOUR_APP_ID" data-warplink-handoff data-warplink-link="YOUR_HANDLE.aplnk.to/YOUR_LINK_SLUG">
Get the app
</a>
Step 4: Name the link
The code must name the link the person tapped. The script finds it in this order:
- The
wl_rtvalue in the page address, which WarpLink adds when it redirects the visitor to your page. - The
data-warplink-linkattribute on the link or button element, for people who reach the page directly, with no tapped link.
A page that serves several campaigns uses the first rule.
In the link editor of each link, turn on Use Tether for this link. Set the iOS fallback URL to the address of your page. It is under Customize per platform, or Customize for iOS in an iOS-only app.
When a person taps the link on an iPhone or iPad, WarpLink sends the person to your page. WarpLink adds the tap marker to the page address.
If the iOS URL of the link starts with https://, WarpLink sends the person there, not to your page. Leave the iOS URL empty, or use an app link such as acmefit://.
On the Settings tab of Tether, keep Use our hosted page off. While it is on, WarpLink can send the person to its own page instead.
Keep the tap marker (#wl_rt= or ?wl_rt=) in the page address through every redirect. The script reads it to find the WarpLink link.
If the script cannot copy a code, the tap still carries on. A link still opens and a form still submits.
A button with type="button" opens the App Store only when the script has an address to open.
The script holds the tap for at most 3 seconds, then the page goes on.
Step 5: Read the code in the app
The page copies the code, and the app reads it. Install SDK 1.4.0 or newer, choose a read mode, and place a paste button on the first-run screen. SDK read modes shows the setup for iOS, React Native and Flutter. Tether needs SDK 1.4.0 or newer, and older SDKs ignore the code.
Step 6: Test the page
Open the page on an iPhone, tap the button, and open the app. Then run verify_setup or open the setup check in the dashboard. It returns one row for each step above: the app, the SDK, the link, the script, the fallback, the preserved address fragment, the allowed site, the store address and the paste. Test Tether lists every row and what to fix.
What the Tether tab shows
The Results tab counts taps, copied codes and accepted codes in three funnels. Two of them are for your own page: one for visits that arrive from a link, and one named "From your page" for visits that arrive directly. The tab also shows how installs matched and the reasons the app found no code, such as a declined paste or an empty clipboard.
Taps that start on your own page are handoff events, not link clicks, so they do not count toward your plan's click limit.
Common problems
- The script does not run. The site is missing from the allowed list. Add it in the Tether tab.
- The code names no link. The page lost
wl_rtin a redirect. Keep the address fragment, or setdata-warplink-link. - The button works but nothing is copied. The button lacks
data-warplink-handoff, or the visit did not come from iOS Safari. - The app finds no code. The first-run screen has no paste button in the default mode, or the build is older than 1.4.0.
Frequently Asked Questions
Do I need to rebuild my website button to use Tether?
No. You add one script tag and mark the existing button. The button keeps its design, its address and its analytics.
Which sites can run the script?
Sites on the app's allowed list, up to 50 per app. Others answer 403 TETHER_SITE_NOT_ALLOWED and show in the Tether tab.
Does the script set a cookie?
No. It stores nothing on the device and sets no cookie.
Where do I see what the script did?
In the Tether tab, under Results. Tether results covers each number.
Related reading
- Tether on your own page: the reference for this setup.
- Tether hosted page: the page WarpLink serves, when you have no page of your own.
- Deferred deep linking on iOS: the concept behind it.
- Tether: the feature overview.
How WarpLink Helps
The script is the small part. Behind it, WarpLink names the tap, issues the code, checks the site, joins the first open to the link and shows the funnel beside the rest of your links. That is our job, so your page stays yours.
Deep linking carries the link through the store, install attribution credits the install to the link that earned it, and real-time analytics shows where people drop.
Create a free WarpLink account and get deep linking, install attribution, and real-time analytics in one SDK, with 10,000 clicks a month on the free plan.
Try WarpLink on one real link
Deep linking, install attribution, and real-time analytics in one SDK. Free for 10K clicks a month, no sales call.
WarpLink keeps the destination through an install, so a new user lands on the right screen at first launch. The same link carries install attribution and real-time analytics.
Stuck on setup? Email support@warplink.app and we will help you get one real link working.
WarpLink Team
Building affordable, reliable link infrastructure for mobile teams. Deep linking, install attribution, and real-time analytics in one SDK.
Related Posts
Preserving an iPhone Link Through Installation
The App Store gives an iPhone app no install referrer. Learn how a short code the page copies and the SDK reads in the app keeps a link through install.
How to Test the Install Referrer and Referral Links
Test the Google Play install referrer and referral links before release: Play internal testing, adb checks, the iPhone paste path, and the test webhook.
Make a Referral Link Survive the App Store on iPhone
How a referral code survives the App Store install on iPhone: the invitation page, the system paste button, and claimReferral, with SwiftUI code.