Grow your audience

Smart links and source tags

Send each visitor to the right place by device, country, day or time, and tag outgoing links with where your visitors came from.

Updated

A smart link is a link on your page with rules that send different visitors to different places. One button can open the App Store on an iPhone, Google Play on Android, and your website on a computer. Visitors only see one link; the right destination is picked when they tap it.

How rules work

Each rule says who it's for and where to send them. A rule can look at:

  • Device: iPhone and iPad, Android, or computers.
  • Country: where the visitor is, using two-letter country codes.
  • Day of the week: in the visitor's own time zone, so "Saturday" means Saturday wherever they are.
  • From and Until: a start and end time for the rule.

Rules are checked from the top, in order. The first rule that matches the visitor wins, and the others are ignored. If no rule matches, the visitor goes to the link's main URL. Leave a part of a rule empty and it matches everyone: a rule with only Android picked applies to Android visitors in every country, on every day.

When a rule has several conditions, all of them must match. A rule with iPhone and iPad and the country US only applies to iPhone and iPad visitors in the United States.

  1. Open the editor (/app) and click the link you want to change, or add a new Link block with Add block.
  2. Make sure the link has a main URL. This is where everyone goes when no rule matches.
  3. Click Smart link under the link's settings.
  4. In Send them to, enter the address for this rule.
  5. Pick who the rule is for:
    • Under Devices (none picked: any), pick iPhone and iPad, Android or Computers.
    • In Countries (optional), type two-letter codes separated by commas, like GB, IE.
    • Under Days, in the visitor's time zone (none picked: any), pick one or more days.
    • Set From (optional) and Until (optional) if the rule should only apply for a while. These use your own time zone when you set them.
  6. Click Add a rule for each extra rule. A link can have up to 20.
  7. Click Save.

Each rule shows a short summary of who it's for, such as "Rule 1: Android, in GB". To remove a rule, click the bin icon next to it. Rules without a Send them to address are dropped when you save.

Use the up and down arrows on a rule to change the order. Put the most specific rules first, since the first match wins.

Examples

App store links by device

You have an app and want one Get the app button.

  • Main URL: your app's website.
  • Rule 1: iPhone and iPad, send them to your App Store page.
  • Rule 2: Android, send them to your Google Play page.

Everyone else, including computer users, goes to your website. Recent iPads often identify as Mac computers, so make sure the main URL also works for iPad users.

A shop for each region

You sell in several countries and want one Shop button.

  • Main URL: your international shop.
  • Rule 1: Countries GB, IE, send them to your UK shop.
  • Rule 2: Countries US, CA, send them to your North American shop.

The code for the United Kingdom is GB. If you type UK, it's saved as GB. A visitor whose country can't be worked out never matches a country rule, so they go to the main URL unless another rule fits them.

Weekday bookings

You take bookings on weekdays and run a market stall at the weekend.

  • Main URL: your weekend market page.
  • Rule 1: Days Mon, Tue, Wed, Thu and Fri, send them to your booking page.

A limited-time offer

Set From (optional) and Until (optional) on a rule to send visitors to a sale page for a few days. When the time is up, the rule stops matching and visitors go back to the main URL, without you changing anything.

Things to know

  • Smart links work even when a visitor's browser has JavaScript turned off.
  • The destination is picked again on every tap, so a visitor who changes country or device can end up somewhere else.
  • Clicks on a smart link count as clicks on that link in Analytics, whichever destination the visitor went to.
  • Broken-link checks cover every address in a smart link, including each rule's. If a rule's address breaks, Page checks names the rule.

Automatic source tags

Source tags help your shop, booking tool or website see where your buyers came from. When they're on, Linkdeck adds these tags to the address of each web link a visitor taps:

  • utm_source: where the visitor came from, such as tiktok or instagram.
  • utm_medium: always linkinbio.
  • utm_campaign: your username, or a campaign name you choose.

Tools like Google Analytics and Shopify read these tags, so their reports show that a sale started on your TikTok bio.

Turn on source tags

  1. Go to Settings (/app/settings).
  2. Find Automatic source tags.
  3. Turn on Tag outgoing links with where the visitor came from.
  4. Optionally, enter a Campaign name. If you leave it empty, your username is used. Letters, numbers, dots, dashes and underscores are allowed.

Settings save automatically.

Where the source comes from

Linkdeck works out the source in this order:

  1. A src value in your page address. If your TikTok bio links to yourname?src=tiktok, every visitor from there is tagged tiktok.
  2. The site the visitor came from. Common apps get short names, such as instagram, tiktok, x, facebook, youtube, linkedin, threads, pinterest, snapchat, reddit, bluesky, twitch and google. Other sites are tagged with their web address, such as example.com.
  3. If neither is known, the source is linkinbio.

Apps like Instagram and TikTok often hide where a visitor came from. To be sure, use a different address in each bio, such as ?src=tiktok in TikTok and ?src=instagram in Instagram.

Your own tags are kept

If a link's address already has a utm_source tag, Linkdeck leaves that link exactly as it is and adds nothing. Tags are only added to web addresses, so email (mailto:) and phone (tel:) links are never changed.

Source tags work alongside smart links: the tags are added to whichever destination the visitor is sent to.

Short links can have the same rules by device, country, day and time, so one short link in an ad or a printed flyer can send each visitor to the right place. See Make short links that carry your pixels.

Still stuck? Send us a message, or go back to all help topics.