> For the complete documentation index, see [llms.txt](https://en.help.firstline.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://en.help.firstline.cc/feature/marketing/trace-link.md).

# Tracking links

## ✨ Overview

By using tracking links, you can attach UTM information when customers click to track clicks. You can also integrate with a LINE Official Account and use features like chatbots, segmented messages, and rich menus so users are automatically tagged when they click, improving tracking and engagement. You can also convert these tracking links into formats such as QR Codes for customers to scan.

## Add or modify a link

After entering the FIRST LINE platform, select "Applications" from the left menu, find the "Tracking Links" feature, and click to enter the editing screen.

<figure><img src="https://3300265106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MNRu7dk70ei7JV9HlW9%2Fuploads%2FNmrxnbADnAGssyzYLEJw%2Fimage.png?alt=media&amp;token=28d155ec-2766-474f-9153-ce485ff1d66b" alt=""><figcaption></figcaption></figure>

After clicking or adding a button, you will see the following fields:

1. **Campaign name**: Name the campaign simply and recognizably for later management.
2. **Destination URL**: Enter the URL you want users to be directed to.
3. **UTM Source (campaign source)**: Specify the traffic source (for example, website, email).
4. **UTM Medium (campaign medium)**: Specify the traffic medium (for example, CPC, email).
5. **UTM Campaign / Name (campaign name)**: Label the specific promotion or campaign name.
6. **UTM Term (keyword)**: Used for keywords in paid search ads.
7. **UTM Content (campaign content)**: Distinguish different versions among similar content or links.

## Link with LINE Official Account

If you want to integrate with a LINE Official Account, please enter the following information:

1. **LINE Official Account**: Specify which LINE Official Account this link will be used for.
2. **LIFF ID**: Enter the corresponding LIFF ID.

This way, your tracking link can be integrated with the specified LINE Official Account,**you only need to provide the system-generated tracking URL to customers**.

{% hint style="warning" %}
Avoid setting the destination URL to a LIFF or embedding a LIFF app to run immediately on the target page to prevent possible conflicts. For example, executing a LIFF app check immediately after the destination URL may cause conflicts and prevent correct redirection. Ensure the destination URL and LIFF apps are used separately so customers can open the page smoothly.
{% endhint %}

<figure><img src="https://3300265106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MNRu7dk70ei7JV9HlW9%2Fuploads%2FNRIFXHgWZb6MNhBSHbsi%2Fimage.png?alt=media&amp;token=c52ae1e2-5cc3-4f37-b513-5cfadf224851" alt=""><figcaption></figcaption></figure>

## Manage LIFF ID&#x20;

In advanced usage, typically one LIFF ID can correspond to only one tracking URL when setting the Endpoint URL. For example, if the LIFF ID is 2005471285-5862SASX, its Endpoint URL might be `https://{system-domain}/go/f1751b8e`, and the LIFF creation limit is 50.

<figure><img src="https://3300265106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MNRu7dk70ei7JV9HlW9%2Fuploads%2F4xoqnKi9bG9bolvvO57y%2Fimage.png?alt=media&amp;token=8a5e5b4d-7f69-4620-a44c-f34b04719fe8" alt=""><figcaption></figcaption></figure>

If needed, you can add a LIFF ID and set its Endpoint URL to `https://{system-domain}/liff/referral`, allowing different tracking URLs to be shared within the same LIFF. This setup enables more flexible management of multiple tracking links and improves the effectiveness of marketing campaigns.

{% hint style="warning" %}

#### Provide tracking URL instead of LIFF URL

Using this method you cannot provide a LIFF URL (a URL starting with liff.line.me, such as <https://liff.line.me/2005471285-5862SASX>) to customers.<mark style="background-color:green;">You need to provide the tracking URL rather than the LIFF URL for customers to click</mark>, in order to correctly redirect to the destination URL.
{% endhint %}

<figure><img src="https://3300265106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MNRu7dk70ei7JV9HlW9%2Fuploads%2FGu7uqTnDyYcVZ71Sochz%2Fimage.png?alt=media&amp;token=2234e579-5cff-430e-9462-0a3b08dd8d0a" alt=""><figcaption></figcaption></figure>
