How to pass cost to your tracker, platform by platform

November 28, 2026 · Hoplytic team · 5 min read

The short version: this guide in 76 seconds.
Read the video transcript

A zone with three sales looks great until you learn it cost five payouts. Here's how to get cost into your tracker.

Each network has its own cost macro. Networks rename tokens, so check before you launch.

Add the macro to your tracking URL as a cost parameter. Next to the click and zone values you already pass, add cost, using the macro for the price actually charged, not the bid.

On CPC traffic, cost is per click. On CPM traffic, a one eighty CPM is a fifth of a cent per visit. On CPA buys, enter spend per day instead.

If one visit shows a cost of one point eight, it's a per-thousand value. And keep cost on every click, because you pay for bots too.

Pick one full day, in the ad account's time zone. Compare your tracker's cost for that campaign with the dashboard's spend. A few percent is fine. Much higher means a bid macro or per-thousand value.

In Hoplytic, open a link and go to Ad cost and return. A value named cost, cpc or visit cost is read automatically. For Google, Meta and TikTok, enter what you spent for a range of days.

The full guide is right below. Hoplytic: ad tracking made simple.

Key points

Revenue without cost is half a report. A zone with three sales looks great until you learn it cost five payouts. The three ways to get cost into a tracker are covered in ROAS tracking for affiliates. This guide is the practical part: which macro to use on which network, what the number actually means, and how to check it.

Short answer: on push, pop and native networks, add the network's cost macro to your tracking URL as a cost parameter, preferring the macro for the price actually charged over the bid. On CPM traffic make sure the value is per visit, not per thousand. On Google, Meta and TikTok, enter daily spend. Then compare one day of tracker cost with the ad dashboard.

Cost macros by network

NetworkMacroWhat it containsSource
Zeropark{visit_cost}Cost of the visitZeropark docs
ExoClick{actual_cost}Actual cost (use it instead of {cost})ExoClick docs
MGID{click_price}Price actually charged for the clickMGID help
Taboola{cpc}The CPC bid for the clickTaboola developer docs
PropellerAdssee campaign formDepends on ad format and pricing modelToken list below the target URL field

For other networks, look at the token list shown next to the target URL field in the campaign form, or ask your account manager whether a cost token exists for your format. Networks add and rename tokens, so check before you launch. Macro lists per network are on the ad platform macros page.

Put the value in a parameter your tracker recognizes, for example:

https://go.yoursite.com/vpn?cid={cid}&zone={target}&cost={visit_cost}

Bid or actual price?

On auction-based networks you often pay less than your bid. A macro that passes the bid makes every placement look more expensive than it was, and the error grows on placements where competition is thin. Use the actual-cost macro where the network has one. If only the bid is available, treat profit as a conservative estimate and correct it with the dashboard total (see below).

One more wrinkle: networks filter some clicks after the fact and don't charge for them. MGID's help notes this for {click_price}. Your tracker saw the click with a price; your invoice won't include it. Small differences from this are normal.

Units: per click, per visit, per thousand

Check the unit of a cost macro the first time you use it. If one visit shows a cost of 1.8, you are looking at a per-thousand value, and your report will be a thousand times off.

Unfilled and broken values

If the macro name is wrong for the format, the network sends it literally: cost={cost} or cost=${COST}. A sensible tracker ignores anything that isn't a number. Other signs of trouble:

Bots cost money too

You pay the network for bot clicks just as for human ones, so your tracker's cost should include them. A tracker that excludes bots from cost makes bad placements look cheap. Keep cost on every click and look at the bot share next to it: a zone where 40% of the spend went to data-center visits is both a placement to block and a case for a credit from the network.

Search and social: spend by day

Google Ads, Microsoft Ads, Meta and TikTok don't pass per-click cost in the URL. The workable method is to copy each day's spend from the ad dashboard into your tracker, per tracking link or campaign, and let it be spread over that day's clicks. Use the same time zone as the ad account, or yesterday's spend lands on the wrong clicks.

Reconcile once before you trust it

  1. Pick one full day, in the ad account's time zone.
  2. Compare the tracker's total cost for that campaign with the dashboard's spend.
  3. Within a few percent: fine. Clicks the network filtered and small timing differences explain it.
  4. Much higher in the tracker: probably a bid macro or a per-thousand value. Much lower: clicks without cost, or lost clicks between the ad and your tracker (see network vs tracker discrepancy).

Once the numbers line up, zone and placement reports with profit become reliable. That is where the money is: zone ID tracking and ROI per zone pick up from here.

Cost in Hoplytic

Open a link and go to Ad cost and return. A cost value in the URL is read automatically when it is called cost, cpc, visit_cost, click_cost or bid_price, or you can type the parameter name your network uses. Values that aren't numbers, such as unfilled macros, are ignored, and comma decimals are understood. You can also set a fixed cost per click, or enter what you spent for a range of days; entered spend is spread over that link's clicks on those days and can't overlap another entry. Pick the currency per link. Reports then show cost, profit, ROI and ROAS for any grouping, and the demo shows them with sample data.

Enter what you spent; the link shows cost, profit, ROI and ROAS.

Questions people ask

What is a cost macro?

A token in your tracking URL that the ad network replaces with what that click or visit cost, for example cost={visit_cost} on Zeropark. Your tracker stores the value with the click and adds it up in reports.

Why is my tracker's cost higher than the network's spend?

Common causes: the macro passes your bid rather than the price paid, clicks the network later filtered out were never charged, or the network's dashboard is in a different time zone. Compare one full day in the same time zone.

Can Google Ads or Meta send cost per click in the URL?

No. Neither offers a per-click cost macro in tracking URLs. Enter daily spend in your tracker, or import it from their reports.

More in Traffic sources and macros

Also: tracking glossary · ad platform macros · Markdown copy