Links, Subs, and Macros
This page was translated automatically and has not been reviewed yet.
Why This Is Needed
Section titled “Why This Is Needed”The link is the only channel through which click data reaches the offer, and events from the offer return to the dashboard. Subs carry your tags (source, creative), macros carry what only the PWA knows (device, country, OS).
Two Links That Are Easy to Confuse
Section titled “Two Links That Are Easy to Confuse”- Advertising link leads to your PWA:
https://your-domain/?s1=…&s2=…. It is placed in ads. You can build it with the Link builder from the PWA list. - Campaign URL leads to the offer and contains macros. Only the PWA sees it: it substitutes values and sends the user there after install.
Macros
Section titled “Macros”Макроси вставляють кнопки під полем URL кампанії: поставте курсор у потрібне місце й натисніть макрос — підказка кнопки пояснює, що він підставить. Значення підставляє PWA на пристрої користувача в момент переходу на оффер.
| Макрос | Що підставляється |
|---|---|
{uniq_id} |
ID інсталу (пристрою). Обовʼязковий — він або {install_id}: за ним постбек знаходить інстал |
{install_id} |
Те саме значення, що {uniq_id}, — під назвою, якою ID інсталу зветься в пушах і статистиці |
{s1} … {s30} |
Саби з посилання PWA (?s1=…&s2=…) |
{fbp} |
Піксель Facebook, як прийшов у посиланні PWA. Якщо в посиланні пікселя не було — порожньо |
{pixel_id} |
Піксель Facebook, яким PWA фактично користується: з посилання, збережений з першого кліку або піксель мовного варіанта |
{fbclid} |
Ідентифікатор кліку Facebook |
{ttclid} |
Ідентифікатор кліку TikTok |
{gclid} |
Ідентифікатор кліку Google |
{os} |
ОС: android, ios або desktop |
{os_version} |
Версія ОС |
{device_brand} |
Виробник пристрою |
{device_model} |
Модель пристрою |
{browser} |
Браузер |
{language} |
Мова браузера, наприклад uk-UA |
{country} |
Країна (ISO-код), визначена за IP |
{ip} |
IP-адреса відвідувача |
{is_organic} |
1 — органіка (у посиланні немає ні ідентифікатора кліку, ні пікселя, ні сабів), 0 — реклама |
{domain} |
Домен, з якого відкрито PWA |
{pwa_id} |
ID PWA |
{pwa_name} |
Назва PWA |
Макроси Facebook — дані оголошення, які Facebook підставляє в посилання PWA в момент кліку. Вони заповнені, коли посилання PWA складено з позначкою Ідентифікатори кампанії Facebook у конструкторі посилання.
| Макрос | Що підставляється | Кнопка вставляє |
|---|---|---|
{fb_cid} |
ID кампанії Facebook | campaign_id={fb_cid} |
{fb_cn} |
Назва кампанії Facebook | campaign_name={fb_cn} |
{fb_sid} |
ID групи оголошень Facebook | adset_id={fb_sid} |
{fb_sn} |
Назва групи оголошень Facebook | adset_name={fb_sn} |
{fb_aid} |
ID оголошення Facebook | ad_id={fb_aid} |
{fb_an} |
Назва оголошення Facebook | ad_name={fb_an} |
{fb_plc} |
Плейсмент Facebook | placement={fb_plc} |
{fb_src} |
Джерело (сайт) Facebook | site_source={fb_src} |
Макрос Facebook кнопка вставляє парою з дозволеною назвою параметра: власні
параметри з префіксом fb_ (наприклад, fb_cid={fb_cid}) зарезервовані, і з
ними кампанія не збережеться. Якщо перед курсором уже стоїть = (наприклад,
sub3=), вставиться лише сам макрос.
Значення за замовчуванням. {s1:organic} підставить organic, якщо саб не
передали або він не дістався з посилання. Так само працюють усі макроси з
таблиць, крім {pwa_id} і {pwa_name}.
Саби, піксель і ідентифікатори кліків зберігаються з першого кліку: навіть якщо людина відкриє встановлений застосунок пізніше без параметрів, значення дійдуть до оффера.
Workflow: Link builder
Section titled “Workflow: Link builder”-
Menu → PWAs → My PWAs → Link builder button next to the domain in the PWA row. The button appears when the PWA has a domain.
-
Traffic source — Facebook, TikTok, Snapchat, Bigo, or Other (any source with a URL postback). This determines which parameters will be included in the link. The builder remembers the selection for each PWA.
-
Domain — the primary or additional domain of the PWA.
-
Network pixel (e.g., “Facebook Pixel”):
- Language variant pixel (default) — nothing is added to the link; the PWA will use the pixel selected in the language variant;
- a pixel from the list — will be included in the link and override the language variant pixel. Disabled pixels are visible with the “off” label but cannot be selected;
- Another ID manually (Facebook only) — if the pixel is not in the list.
If there are no network pixels yet, a link to its page in the dashboard will be below the field.
-
Facebook campaign IDs (Facebook only, enabled by default) — adds campaign ID and names, ad set, ad, placement, and source to the link. Facebook will substitute them at the moment of the click; without them, statistics cannot be matched with costs. These are the values that macros like
{fb_cid},{fb_sid}etc. pass in the Campaign URL. -
Click ID — the hint below the pixel explains how it gets into the link: Facebook (
fbclid), Snapchat (ScCid), and Bigo (bbg) append it themselves; for TikTok, the builder addsttclid=__CLICKID__at the end — TikTok will substitute the value itself. For the Other source, place the click ID macro in the sub specified in the pixel. -
Sub parameters —
s1…s6immediately; add more if needed (up tos30). Empty subs are not included in the link. -
Network macros for subs — buttons append a network macro (e.g.,
{{campaign.name}}for Facebook or__CAMPAIGN_NAME__for TikTok) to the sub you last worked with, or to the first empty one. The network will substitute the value at the moment of the click. For Bigo, there are no such buttons — fill in subs manually. -
Generated URL → Copy — and into the ad. For Facebook, above the field, there is a view toggle: Single line or Separate for Ads Manager. In the second view, the link is split into two fields with their own Copy buttons: Website URL — the address without parameters, URL parameters — everything after the question mark. Insert them into the identically named fields of the ad; together they form the same link. The selection is remembered.
-
Protect link — subs and the pixel are hidden in a single
?d=parameter, and are not visible in plain text. They will reach the offer as usual. Parameters with network macros remain open: the network substitutes values only into the URL itself. Show plain link restores the normal view.

Screen Elements
Section titled “Screen Elements”| Element | What it does | When needed |
|---|---|---|
| Traffic source | Facebook / TikTok / Snapchat / Bigo / Other | Always |
| Domain | PWA domain the link leads to | Always |
| Network pixel | Pixel in the link instead of the language variant pixel | A different pixel for this ad |
| Facebook campaign IDs | Campaign, ad set, and ad IDs and names | Statistics with Facebook costs |
| Sub parameters | s1…s30 with your tags |
Pass tags to the offer |
| Network macros for subs | Append a network macro to a sub | Campaign and ad names in subs |
| Generated URL | Result and Copy button | Always |
| Protect link | Hides subs and pixel in ?d= |
Do not show parameters openly |
| Pixel parameter name in link | How the Facebook pixel is named in this PWA’s link | Generated links with a different name |
What Can Go Wrong
Section titled “What Can Go Wrong”| Symptom | Cause | What to do |
|---|---|---|
| Empty subs in the offer | Subs are not passed in the advertising link, or the Campaign URL has no default values | Add ?s1=… to the link or {s1:default} to the Campaign URL |
| Postbacks are not attributed | The Campaign URL does not contain {uniq_id} or {install_id}, or the affiliate network does not return it |
Check the URL and postback settings in the affiliate network |
{fbp} is empty, although the pixel is working |
The pixel is missing from the link — the PWA used the language variant pixel | Use {pixel_id} |
Empty {fb_cid} and other Facebook macros |
The advertising link was built without Facebook campaign IDs | Build the link with the option enabled |
| Link with new pixel parameter name does not work | The name has been saved, but changes in the PWA have not yet been published | Publish changes in PWA |
| Link builder button is missing | The PWA does not yet have a domain | Add a domain to the PWA |
