Skip to content

Deep links: links that open your app

A deep link is an ordinary web address that opens a page inside your app. Put one in an email, a text, a QR code or a post, and a tap takes the person straight to the right place: an offer, an order, their basket.

This page is for everyone on the team. It explains what happens when someone taps a link, and how to set links up. Your developers then add a few lines to the app: see Next steps.

Say Northwind Coffee sends a link to its new loyalty offer, /offers/42.

The app opens on the offer. No browser, no extra tap.

The link sends the person somewhere useful instead. PurrCRM picks the first of these you have set up:

  1. The offer’s own web page (the destination’s Its web page).
  2. Your Web page for a phone without the app.
  3. The App Store or Google Play.
  4. A page PurrCRM makes, with the app’s name, an Open in button and your store buttons.

When the link goes to a store, it waits for the person. They install the app, open it, and it opens on the offer, not on its start screen. On Android this always works through Google Play. On an iPhone, turn on Keep links through an iPhone’s install (see step 1). The link waits for a day: the app must be opened for the first time within 24 hours of the tap.

A computer can’t open your app. It goes to the offer’s web page, or your Web page for a phone without the app. With neither, it gets PurrCRM‘s page with a QR code: “On a computer: scan this with your phone.”

A saved link can also show a computer the QR code on purpose (On a desktop, A QR code): see Make and share links.

These apps open links in their own browser, which can’t open other apps. When PurrCRM sees one of them (or LinkedIn, LINE or Snapchat), it shows the page “This opens in” your app, with a way out:

  • On Android, the Open in button opens your app directly, or Google Play when the app isn’t there.
  • On an iPhone, the page says to tap •••, then Open in Safari, or to copy the link and open it there.

You need to be an owner or admin of the workspace to change these settings. Everyone else can read them.

The Setup page, with the Link domain card and the check of what phones readThe Setup page, with the Link domain card and the check of what phones read
The Setup page, with the Link domain card and the check of what phones read

Go to Links › Setup. In the Link domain card:

  1. Give the links a Name: lowercase letters, digits and -, such as northwind. Your links are then on PurrCRM‘s address, under /l/northwind/.
  2. To use a domain of your own instead, such as go.northwind.example, fill in Host of its own (optional). Add a CNAME record for it at your DNS provider, pointing where the hint says. PurrCRM then sets up the host and its certificate. Check what phones read shows when it is ready.
  3. Fill in your apps:
    • iOS apps: one a line, your Apple team ID, a dot, and the bundle ID, such as ABCDE12345.com.northwind.rewards. The team ID is in your Apple developer account, under Membership.
    • Android package, such as com.northwind.rewards.
    • Android signing SHA-256: one fingerprint a line, from Play Console › Test and release › App integrity › App signing. Add your debug key’s too, for builds from your own machine.
  4. Say where a phone without the app goes:
    • Web page for a phone without the app (optional): an https address. {path} in it is replaced by the link’s path, such as https://northwind.example{path}.
    • App Store page (optional) and Google Play page (optional).
  5. Tick what you want:
    • Use these links in emails: your emails’ links to places in the app then open the app. Turn it on once most of your users have a build of the app that opens links.
    • Allow UTM tags on links into the app: lets your team add utm_source, utm_medium and utm_campaign to links into the app. Leave it off if your app is strict about the links it reads.
    • Keep links through an iPhone’s install: a link still opens the right page after someone installs your iOS app from it. iOS asks the person before the app reads the link, so turn it on with a build of the app that does this.
    • Let the app make links for its users to share: your users can share a place in the app with a short link of their own.
  6. Press Turn links on.

PurrCRM checks the links as soon as they are saved.

Go to Links › Destinations. A destination is a place in your app, written as a path with its changing parts in braces: /offers/{offer_id}. Every link picker in PurrCRM offers these places.

  • An app with the current SDK reports the places it declares. They appear at the top of the page: press Add, or Add all.
  • To add one yourself, press Add a destination. Give it a Name (what your team sees, such as Offer page) and its Path in the app. For each part in braces, say What it is and, if you like, a Default.
  • Its web page (optional) is where a phone without the app, or a computer, goes for this place. It can use the path’s parts: https://northwind.example/offers/{offer_id}.
The Destinations pageThe Destinations page
The Destinations page

Before a phone opens a link in your app, it downloads a small file from your link domain that says which apps may open its links. iPhones read one called apple-app-site-association, Android phones one called assetlinks.json. PurrCRM writes both from your settings.

On Links › Setup, press Check what phones read. You see a line for each:

  • iOS (apple-app-site-association)
  • Android (assetlinks.json)

Each should say Names the app. Not yet comes with what is wrong, such as a missing team ID or fingerprint. With a host of your own, a first line also says how the host stands, ending at Host ready.

The In the app card below shows what your developers put in the app, with your host already filled in.

At the bottom of Links › Setup, Test a link shows what each kind of visitor gets from a link: an iPhone, Android, a Desktop, a Social preview and Instagram’s browser. Paste a link, press Test it, and read Opens the app and What happens for each. Nothing is counted.

To try a link on a real phone, add your phone under Testing › Preview on my phone, then use Send to a test phone in Links › Build a link.

Your links can only send people to places that are safe to send them:

  • Your app’s own places, opened in the app.
  • The stores: only real App Store (apps.apple.com) and Google Play (play.google.com) addresses.
  • Any other website, including your own, gets a page first. It says “You’re leaving for” and the site’s name, with a Continue button, and a link to open your app instead.

On that page, anyone can press Report this link, say What is wrong with it? (optional) and Send the report. Reports reach PurrCRM, who can switch a harmful link off. A link that is switched off no longer opens anything.

The addresses a saved link sends people to off the app are also checked against Google Safe Browsing when the link is saved, and every night after. See Keeping links safe.

  • Installs: an install counts for a link when the app is opened for the first time within a day of the tap.
  • Goals: a saved link with a goal counts the contacts who did the goal’s event within so many days of first opening the link in the app. A link sets its own days. For a link that doesn’t, the days are the app’s Credit a goal to a link for (days) on Links › Setup: 1 to 90, and 7 when empty.
  • Re-engagement window (days, optional), on the same card, tells apart opens by people who already used the app in the days before from new and returning ones.
  • The link opens the browser, not the app. Press Check what phones read on Links › Setup. Both lines should say Names the app. If one says Not yet, fix what it says (often the team ID, the bundle ID, or a missing SHA-256 fingerprint), press Save, and check again.
  • It works on one phone and not another. The phone needs a build of the app that opens links. Ask your developers whether that build has the intent filter (Android) or the Associated Domains entry (iPhone) from the In the app card.
  • iPhones still open the browser after a fix. An iPhone downloads the file when the app is installed or updated. Delete the app and install it again to read the new file.
  • A debug build on Android doesn’t open links. Add your debug key’s fingerprint to Android signing SHA-256.
  • The check says DNS not set up yet, or DNS points elsewhere. Your own host’s CNAME record is missing or wrong. Fix it where your domain’s DNS is kept. A change can take a while to spread; DNS couldn’t be checked means try again in a minute.
  • Tapping a link in Instagram shows a web page. That’s Instagram’s browser. The page shows the way out: see In Instagram, Facebook or TikTok.
  • After installing, the app opened on its start screen. On an iPhone, turn on Keep links through an iPhone’s install and check the app’s build supports it. On both, the person must open the app within a day of the tap, and the link must have gone to the store, not to a web page.
  • A saved link says Disabled. It was switched off, for example because Google Safe Browsing flagged its address. See When a link breaks.
  • You get an email that your links stopped opening the app. See When a link breaks.

Your developers hand every link that opens the app to PurrCRM‘s SDK, so the app goes to the right place and the open is counted.

Then make and share links.