Skip to content

Make and share links

This tutorial makes a saved link for Northwind Coffee’s summer offer, shares it, and reads what it did. Then it adds a banner to the website and a referral programme.

Before you start: your app’s links are set up under Links › Setup, and your app opens them. See Deep links: links that open your app.

Go to Links › Overview. It shows how your links stand and what your saved links did in the last 30 days.

  • The buttons at the top: New link, Build a quick link and Test a link.
  • Health: your Link domain (Phones read it, Not checked yet or Phones do not read it yet), your Destinations, and your Saved links, each with a link to its page.
  • Last 30 days: Clicks, Unique visitors, Opens in the app and Installs, by day, and the links Most clicked.
The Links overview, with the Health card and the last 30 daysThe Links overview, with the Health card and the last 30 days
The Links overview, with the Health card and the last 30 days

A saved link keeps a short address, such as …/go/summer24, and counts everything that happens to it. Use one whenever you want to know how a link did.

Go to Links › Links and press New link. The editor has seven parts. Only Name and Where it goes are needed.

The New link editorThe New link editor
The New link editor
  1. Name: for you and your team, such as Summer offer.
  2. Slug (optional): the end of the short address, such as summer24. Leave it empty and one is made up. Once the link is made, it keeps a slug.
  3. Where it goes: one of your app’s destinations, such as the offer page, with a value for each of its parts. You can also type any path in the app.
  4. Data for the app: up to 10 keys your app is handed with the link, such as offer_id = 42. Press Add a key for each.

What the clicks are counted under.

  1. Template: if you have templates, choose one to fill in this part for you.
  2. Campaign, such as summer-24.
  3. Channel, where you’ll share it, such as instagram.
  4. Tags, separated by commas.

Where a phone without the app, or a computer, goes instead of your app’s usual pages.

  1. iPhone (optional): instead of the App Store or the web page.
  2. Android (optional): instead of Google Play or the web page.
  3. On a desktop: The website sends a computer to a web page. A QR code shows it a code to scan with a phone instead.
  4. Desktop page (optional), with The website: instead of the app’s web page.

A web page on another site goes through the page that says “You’re leaving for” it first. See Where links may go.

Send some visitors elsewhere. Both are optional.

  • Split (optional): press Add a destination. The link’s own destination comes first, with a new row beside it. Give each destination a share, and the page shows each one’s percentage. Up to 4 destinations. Each visitor always goes to the same one, so a test is fair.
  • Countries (optional): press Add countries. Type two-letter country codes separated by commas, such as PL, DE, and where their visitors go. Up to 10 rules. A country rule comes before the split. A visitor whose country can’t be told goes by the split.

A split and country rules apply to the link’s Short address. Share that one.

What a chat or a feed shows when the link is shared. Empty uses the app’s name and logo.

  1. Title.
  2. Description.
  3. Picture: an https address of a picture, 1200 × 630 at best.

The card beside the fields shows how it looks.

Count the people who went on to do something.

  1. Event (optional): such as order_placed.
  2. Within (days): how long after first opening the link in the app the event counts, from 1 to 90. It starts at your app’s Credit a goal to a link for (days), 7 unless you changed it on Links › Setup.
  1. Ends (optional): the date and time the link ends.
  2. Then goes to (optional): where the link goes after that. Empty sends it to your app’s landing page.

Press Make the link. Its page opens.

On the link’s page, the QR code card designs a code for print:

  1. Choose the Code and Background colours. Keep the code dark on a light background, or scanners may not read it.
  2. Tick The app’s logo in the middle to put your logo in the code. This needs a logo in your app’s brand.
  3. Choose the Error correction: higher survives more damage, and is denser. With a logo it is always H.
  4. Choose the PNG size, then download SVG or PNG.

The Preview card beside it shows what a chat shows. Copy the Short address or the Full address from the top of the page.

For a link you don’t need to count or keep, go to Links › Build a link.

  1. Choose Where it goes.
  2. Fill in the Campaign tags (optional): utm_source, utm_medium, utm_campaign, and under More, utm_content and utm_term. These show only when Allow UTM tags on links into the app is on in Links › Setup. Your browser remembers the last ones.
  3. Copy The link, or press Open.
  4. Download its QR code as SVG or PNG, in the PNG size you choose.

To try it on your own phone, press Send to a test phone. Your phone gets a push titled “Try this link”; tap it. Add your phone first under Testing › Preview on my phone.

Build a link, with a link and its QR codeBuild a link, with a link and its QR code
Build a link, with a link and its QR code

A template fills in a new link’s campaign, tags, UTM tags, platform pages and goal. Make one for each campaign you run often.

  1. Go to Links › Links and press Templates.
  2. Press New template. Give it a Name, then fill in any of Campaign, Channel, utm_source, utm_medium, utm_campaign, Goal event, iPhone page, Android page, Desktop page, Tags, On a desktop and Goal within (days).
  3. Press Save the template.

In the link editor, choose it under Campaign › Template. Deleting a template later doesn’t change the links made from it.

  1. Go to Links › Links and press Upload CSV.
  2. Press A file to fill in for a CSV with the right columns. Fill in a row for each link: name and destination are needed. Tags are separated by |, and each key of data is a data_<key> column, such as data_offer_id. At most 1,000 links.
  3. Under The file, choose your CSV.

PurrCRM checks every row without making anything, and lists the rows that would fail, with why. Fix them in the file and press Choose another file, or make the rest now with Make the … that pass. When all pass, the button says Make … links.

When it is done, What became of each row downloads a CSV with each row’s result.

  1. Export your links from Firebase as a CSV.
  2. In Upload links, tick The file is a Firebase Dynamic Links export before you choose the file.

Each short link’s suffix becomes the slug, its deep link’s path the destination, and its UTM source and campaign the channel and campaign. Every link is tagged fdl.

To keep the old addresses working, make your Firebase custom domain your link domain’s Host of its own on Links › Setup. Addresses on page.link can’t be kept.

Links › Links lists your saved links, newest first, with their Short address, Campaign, Channel, Clicks, 7 days and Opens, 7 days.

  • Search by name, slug or where it goes, or filter by Campaign, Channel, Tag and Archived.
  • Made by shows Your team’s links, or the ones your users made: Users, sharing and Referral links.
  • Select links and press Archive to stop them opening anything. Filter Archived to find them again and Bring back.
  • A link marked Expired is past its end. One marked Disabled was switched off: see When a link breaks.
The list of saved linksThe list of saved links
The list of saved links

Open a link from the list. Under What it did, choose 7 days, 30 days or 90 days.

  • Clicks, Unique visitors (each counted once a day), Opens in the app, Installs (the app’s first run after the link) and Bots and scanners, which are not counted as clicks.
  • By platform, By channel and By referrer: where the clicks came from.
  • By destination, for a link with a split or countries: each destination’s clicks and opens in the app.
  • From click to app, or with a goal, From click to goal: clicks, opens in the app, the contacts who opened it, and the ones who did the goal’s event in time.
  • Contacts who opened this lists those people in Contacts.

With a Re-engagement window set on Links › Setup, Opens in the app also tells new and returning people from those already active.

A saved link's page, with its QR code and what it didA saved link's page, with its QR code and what it did
A saved link's page, with its QR code and what it did

Your backend can be told of each click, open, install and referral as it happens: see Webhooks.

On a link’s page, press Test. Or go to Links › Overview and press Test a link, then paste any of your links and press Test it.

You see what each gets: an iPhone, Android, a Desktop, a Social preview and Instagram’s browser. For each, whether it Opens the app, and What happens. Testing counts nothing.

A banner on your website opens your app on a phone. A phone without the app goes to its store, and the app opens on the right page after the install.

  1. Go to Links › Website.
  2. Tick Show a banner on the website.
  3. Fill in the Title, such as Get the Northwind Coffee app, and if you like, the Text (optional) and the Button (optional) (empty says Open).
  4. Opens (optional): the path in the app the button opens, such as /offers/42. Empty opens the app’s start.
  5. Choose Where: At the bottom or At the top.
  6. Closed, it stays away (days): how long the banner stays hidden after someone closes it. Empty is 7.
  7. Not on these pages (optional): one path a line, such as /checkout. Pages whose address starts with one show no banner.
  8. Leave Only on phones ticked, unless computers should see it too.
  9. Press Save. The website shows the banner within five minutes.

Then, in the On the website card, copy The script and put it before the closing </body> tag of every page.

The same script keeps your campaigns. Mark your website’s links into the app with data-crm-link, and the script adds the page’s utm_source, utm_medium and utm_campaign to them. The app’s opens then keep the campaign that brought the visitor.

If your website has a Content Security Policy, add the address the card shows to its script-src.

The Website page, with the banner's settings and the scriptThe Website page, with the banner's settings and the script
The Website page, with the banner's settings and the script

Every user gets a link of their own to bring friends. Acme Rewards, say, gives a free coffee for each friend who places an order.

  1. Go to Links › Referrals and tick Run a referral programme.
  2. Reward when they: the event a referred user does to earn their referrer a reward, such as order_placed.
  3. Within (days): how long after arriving by the link. Empty is 30.
  4. Most rewards for one referrer (optional): a cap. Empty for none.
  5. A referral link opens (optional): a path in the app. Empty opens the app’s start.
  6. Press Save.

Your app shows each user their link: see Referrals in Flutter. A user new to the app who arrives by it is credited to the person who shared it, once. Nobody can refer themselves.

When the referred user does the reward event in time, the referrer gets a referral_converted event. Reward them with a workflow that starts on that event: a message, a tag, or a webhook to your backend. See A welcome workflow for how workflows start.

The last 30 days shows how many Joined by a referral, how many Did the reward, and each Referrer with their Joined and Rewarded.

The Referrals pageThe Referrals page
The Referrals page

PurrCRM checks your links every night. When something goes wrong, the workspace’s owners get an email, once:

  • The app’s links stopped opening it. Phones now open your links in the browser. The email says what the check found, such as a host that isn’t ready, or a file that no longer names the app. Go to Links › Setup, fix it, and press Check what phones read.
  • Destinations the app no longer has. The newest build of your app no longer declares some places it declared before. Links to them may open a page the app no longer has. Links › Destinations marks each one Not in its newest build: change it or delete it.
  • Links were switched off as unsafe. Google Safe Browsing now flags an address of these saved links, so they no longer open anything. They show Disabled in the list. Change the address in the link’s editor, then ask PurrCRM to switch the link back on, as the email says.

A visitor can also report a link that leaves for another site (see Where links may go), and a harmful link can be switched off.