Quick answer
To track affiliate links step by step: create one short link per placement, add a click ID such as {clickid} to the affiliate URL, set up a postback so your network sends each sale back with that click ID, send a test sale, then share the links. Every sale is then matched to the exact post, video or email that earned it.
Your affiliate dashboard says you earned $212 last month. It does not say whether the money came from your YouTube description, your newsletter or the post you pinned on Instagram. This tutorial fixes that. By the end, every click on your affiliate links is counted per placement, every sale is matched to the exact link that produced it, and you can tell what is worth repeating.
It takes about 20 minutes the first time. You need a Lynkio account, an affiliate link from a program you already belong to, and access to that program's postback or tracking settings (most networks have them under a name like postback URL, S2S tracking or global pixel).
How the tracking works, in one minute#
Four pieces work together, and it helps to see them before you set anything up:
- A short link per placement. Each place you share the offer gets its own link, so each has its own click count.
- A click ID. Every click gets a unique, signed ID. You pass that ID to the affiliate network inside the destination URL.
- A postback. When a sale happens, the network calls a Lynkio URL and sends the click ID back with the amount.
- A match. Lynkio finds the click behind that ID and credits the sale to the right link, campaign and source.
If you skip the click ID, sales still arrive but they cannot be tied to a link. That is the single most common reason affiliate numbers look useless, so we will set it up properly.
Step 1: Create one short link per placement#
List every place you will share the offer: the YouTube description, the pinned comment, the newsletter, the Instagram bio, a Telegram channel. Create a separate short link for each one, all pointing to the same affiliate URL.
- Name each link with the offer, the channel and the month, such as vpn-youtube-nov or vpn-newsletter-nov.
- Put all links for one offer in the same campaign so you can compare them side by side.
- Keep names lowercase and short. You will read them in reports for months.
The reason for one link per placement is simple. The affiliate network only sees one URL and one total. Your own links are what split that total into pieces you can act on. For the thinking behind this, see how to track affiliate links and find what actually earns.
Step 2: Add the click ID to the affiliate URL#
Most networks let you pass your own label in the link, usually called a sub ID, sub1, tag or click reference. Open the link in Lynkio and edit the destination so that parameter carries Lynkio's click ID macro:
https://network.example/offer?aff=YOURID&sub1={clickid}
On every click, Lynkio replaces {clickid} with that click's unique signed ID before sending the visitor on. Use the parameter name your network documents. If it has several, pick the one the network says it will return in the postback.
Lynkio links also have SubID fields where you can store a free label, such as the creative or the placement. They come back in your reports next to the sales, which helps when several links share one campaign.
Step 3: Set up the postback with your network#
Open the revenue setup page in Lynkio and copy your postback URL. It already contains your private token. Paste it into the network's postback settings and replace the placeholders with the network's own macros for the sale amount, the order or transaction ID, and the sub ID you used in step 2.
The finished URL looks like this, with your real token and the network's macro names in place of the examples:
https://your-lynkio-domain/pb/YOUR_TOKEN?amount={payout}&event_id={transaction_id}&clickid={sub1}
- amount is the commission you earn, not the price the customer paid.
- event_id lets Lynkio ignore a sale the network sends twice, because networks retry.
- clickid is the value you passed in step 2, handed back by the network.
If your network supports it, turn on the shared secret or the IP allowlist for the postback. It stops anyone else from sending fake sales to your account.
Step 4: Test before you share anything#
Do not wait for a real sale to find a typo. Check each layer:
- The link. Open one of your short links in a private window. You should land on the offer, with the click ID filled into the URL.
- The postback. In the link editor, run the postback test. It sends a sample sale through the real receiver as a dry run and shows what would be recorded.
- The whole chain. Open the tracking health page and run a check. It shows whether the link works, whether clicks are arriving and whether sales are coming back, and it points at the step that is broken.
Many networks also have a test conversion button. If yours does, fire it once and confirm the sale appears in your revenue log.
Step 5: Share the links#
Now replace the raw affiliate URL with the matching short link in each placement. Add a clear disclosure wherever you share them, for example "affiliate link" next to the button. It is required in many countries and it protects the trust that makes people click.
Step 6: Read the results#
After a few days of traffic, open your revenue overview and look at three things in this order:
- Earnings per link. Sort by commission, not by clicks. The top three placements are the ones to repeat.
- Earnings per click. A placement with many clicks and low earnings per click is attracting the wrong audience or sending them to the wrong page.
- Links with clicks and no sales. After a fair number of clicks, such as 100 or more, this is a signal to change the page, the offer or the audience.
On plans that include the growth report, the source map does this comparison for you and places each source as one to scale, fix or drop.
Why your numbers will not match the network#
Expect a gap between your clicks and the network's. Link previews, bots and people who click twice add noise on your side, and networks apply their own filters and attribution windows. Sales can also be reversed later when an order is refunded or a lead is rejected. A steady gap is normal. A sudden change in the gap is worth investigating. For more on the same idea, see how to track campaign links with UTM parameters.
Troubleshooting#
- Sales arrive but are not tied to a link. The click ID is missing from the postback. Check that the destination holds the macro and that the postback sends the same parameter back.
- No sales arrive at all. Check the postback URL for a typo and look in the postback log to see whether the network called it, and what was rejected.
- Every sale shows twice. Include a unique ID such as the order or transaction number so repeats are ignored.
- The sale amount is zero. The amount macro is wrong or the network sends it under a different name.
- Clicks stop counting. Run the link health check. The destination may have broken or the offer may have ended.