Appy

Smart links and web-to-app

What is a referral link?

Short answer

A referral link is a personal invite link that carries a code identifying the person who shared it. When a friend signs up through it, the product knows whom to credit and can reward one or both of them. For apps, the hard part is keeping that code through the store install.

How it works on the web

Each user gets a link with their code in it, usually as a query parameter. A friend opens the link, the website reads the code from the address and stores it, and the sign-up is recorded against the inviter. Nothing can get lost, because the code stays in the browser the whole time.

The link is usually shared from inside the product, through a share button that fills in the code, so the inviter never has to type or remember it.

Why apps are harder

A friend without the app has to go through a store first. The tap opens the store, the store installs the app, and the app starts with no memory of the link. The App Store doesn’t pass link parameters to the app. Google Play passes on only what sits in its referrer parameter, through the install referrer.

The fix is a deferred deep link. The link service remembers the tap, and when the new app opens for the first time it asks the service which link brought this install and gets the code back. With a contextual deep link the app can go further and open the invite screen with the inviter’s name and the reward already filled in.

If the friend already has the app, an ordinary deep link is enough: the link opens the app and hands the code over directly.

Paying rewards safely

A reward invites abuse: people invite themselves from a second account, or share a code on coupon sites. Pay on proof. Tie the reward to an install you can verify, or to a later action such as a first purchase, and limit rewards per person.

This is install attribution on a small scale. On Appy, referral codes that survive the install use the SDK on Enterprise, and the attribution lookup tells your backend whether an install could be verified before you pay.

ExampleReferral link with the inviter’s code
https://example.com/invite?ref=ANNA10

Try it here

Build a deep link for your app

Enter your app’s scheme, the screen to open and your store and website addresses. You see the links for iOS and Android, and can turn them into one Appy link that sends each phone to the right store.

Optional
app://
Optional

Free sign-up. No credit card.

Sign-up is free and your link starts sending people to the stores right away. Opening the app itself is part of Pro, $9.99 a month.

What happens next

  1. 01Sign up free with Google or email
  2. 02We create your smart link with these settings
  3. 03Share it, or switch on app opening with Pro
Read moreReferral Links for Apps: Codes That Survive InstallA friend taps an invite, installs from the store and opens the app with the code already applied.

Frequently asked questions

What is the difference between a referral link and an affiliate link?

Both carry an identifier for whoever shared them. A referral link belongs to an existing user inviting friends, usually for credit inside the product. An affiliate link belongs to a partner or publisher who is paid a commission on sales.

How does the referral code survive an app install?

Through a deferred deep link. The link service records the tap, and on first launch the app asks which link led to this install and receives the code. On Android the Play install referrer can also carry the code through the store.

Can I use a referral code without a link?

Yes. Let people type the code during sign-up. It always works and costs conversions, since every typed field loses some people. Most apps offer both: the link applies the code automatically, and the field is there when the link was lost.

  • Deferred deep link

    A deferred deep link is a deep link whose destination survives the app install. Someone without the app taps it, goes to the store, installs, and on first launch the app opens the screen the link promised, such as a product, an invite or a promo code, instead of the home screen.

  • Contextual deep link

    A contextual deep link is a deep link that carries extra data along with the destination, such as who shared it, which campaign it belongs to or a promo code. The app reads that data when it opens and adapts the screen, and with deferred deep linking the data also survives a fresh install.

  • Install attribution

    Install attribution is the step that credits a new app install to the link, ad or campaign that caused it, or marks it as organic when no source is found. It joins two moments that the app store separates: the tap before the install and the first time the app is opened.

All glossary terms

One link for every phone

Create a free smart link and QR code that sends iPhones to the App Store, Android phones to Google Play and desktops to your website.