Conversion tracking
Clicks show how many people came. Conversions show how many signed up or bought. With conversion tracking on, your site tells LinkLane when a visitor converts, and LinkLane ties it to the link and the exact click.
PlanPro and above
How it works
- You turn on conversion tracking for a link.
- On each click, LinkLane adds
ll_cid=<click id>to the destination URL. - Your site saves that id, for example in a cookie or on the order.
- When the visitor converts, your site sends the id back to LinkLane.
LinkLane then counts the conversion and its value on the link and on its campaign.
1. Turn it on
Open the link's analytics page. In QR, goals & conversions, turn on Conversion tracking.
2. Keep the click id
Read ll_cid from the landing page URL and store it until the visitor converts:
const cid = new URLSearchParams(location.search).get("ll_cid");
if (cid) document.cookie = `ll_cid=${cid}; path=/; max-age=${60 * 60 * 24 * 30}`;
3. Send the conversion
Pick one.
Pixel. Put an image on your thank-you page. It works on any site where you can add HTML:
<img src="https://api.linklane.io/api/cv.gif?cid=LL_CID&event=purchase&value=49.99¤cy=USD"
width="1" height="1" alt="" />
Server postback. Call LinkLane from your server, for example after a payment succeeds. Nothing depends on the visitor's browser:
curl -X POST https://api.linklane.io/api/conversions \
-H "Content-Type: application/json" \
-d '{"cid": "LL_CID", "event": "purchase", "value": 49.99, "currency": "USD"}'
Neither needs an API key. Replace LL_CID with the stored id. The Conversions API lists every field.
Rules
- Each click converts once. A second conversion with the same id is ignored.
valueis optional. LinkLane keeps values from 0 to 1,000,000.- No click id? Send the link's
codeinstead. LinkLane credits the link, but not one click, and doesn't remove duplicates. - Each IP can send 120 conversions an hour.
See the results
- The link's analytics page shows conversions and their value.
- The campaign page shows Conversions, Revenue and Conversion rate for all its links.
Some sites drop unknown URL parameters on redirect. Click your short link once and check that ll_cid reaches the landing page.