Piggyback pixels
Mirror every recorded conversion to a third-party tracker — a URL the ad server calls itself, or a JS tag the visitor's browser runs — on a campaign, site or placement, step by step, with the caveats, a fix-it checklist and a link to the full reference.
What it is and why
A piggyback is a third-party tracker the ad server notifies every time it records a conversion — either by calling a URL itself (URL (server-side)), or by handing the visitor’s browser a tag to run (JS code (client-side)). It lets a partner that did not serve the ad — an affiliate network, a measurement vendor, Google Ads or Meta — learn about the conversions Epom attributed, without the advertiser installing a second tracker. Piggybacks live on campaigns, sites and placements, and one conversion fires every matching row from all three at once.
Example. A campaign is bought through an affiliate network that pays the publisher per
purchase. A URL piggyback on the campaign —
https://track.affiliate.example.com/postback?tid=$$TRANSACTION_ID_STR$$&payout=$$NET$$ — is
called by the ad server straight after each recorded purchase, so the network’s ledger and your
Conversions column agree, and a second JS row carries the advertiser’s Google Ads conversion tag
so Google credits the same purchase from the visitor’s own browser.
Typical scenarios
| You want | Set | Where |
|---|---|---|
| Tell an affiliate network about every purchase on one campaign | URL (server-side), the partner’s postback with $$TRANSACTION_ID_STR$$; Conversion action = purchase; Fire for = All conversions | the campaign’s Piggybacks card |
| Let the advertiser’s Google Ads / GA4 / Meta tag count the conversion from the visitor’s browser | JS code (client-side), the partner’s tag pasted as given | the campaign’s Piggybacks card (and a conversion page running the Snippet or the “with piggybacks” pixel) |
| Pay a tracker only on post-click conversions | Fire for = Post-click only | the row’s Delivery group |
| A publisher-side tracker for every conversion delivered through one site, whichever advertiser | A row on the site, Advertiser = All advertisers | Account → Publishers → site → Piggybacks |
| Fire a third-party pixel when a banner becomes viewable | URL (server-side) row with Conversion action = AD VIEWABLE IMPRESSION-GLOBAL | the campaign’s or site’s Piggybacks card — recipe in Viewability |
| Send a partner 1 in 20 conversions for a sanity check | Piggyback sampling = 5 (needs the sampling permission) | the row’s Delivery group |
Step by step
Conversion tracking must already be working — a conversion action linked to the campaign, and a pixel, snippet or S2S postback recording conversions (see Get the pixel and S2S tracking code) — and you need the URL or the tag the partner gave you.
-
Open the entity that should carry the piggyback:
- Account → Advertisers → advertiser → campaign → Piggybacks — fires on this campaign’s conversions; can be narrowed to one site or one placement.
- Account → Publishers → site → Piggybacks — fires on conversions delivered through this site; can be narrowed to one campaign.
- Account → Publishers → site → zone → placement → Piggybacks — the same, for one placement.
-
Switch the Piggybacks card on. Switching it off later hides and deactivates the rows without deleting them.

-
Click Add. The Piggyback dialog opens with three groups.

-
Fill in Tracking code:
- Type — URL (server-side) (the default) or JS code (client-side). Use URL whenever the partner accepts a plain call; use JS when the partner will only credit a hit made by the visitor — see Which type to use below.
- The box below, labelled with whichever type you picked — the partner’s URL, or the partner’s tag. Both accept macros; Piggyback macros in the dialog footer is the reference list of the macros that resolve here.
- For a JS row only, a Will run as block appears as you type: a badge saying how the server read your row, and the exact markup the browser will run. Check it — a tag misread as JavaScript is otherwise invisible until the partner reports no hits.
-
Fill in When it fires. Everything defaults to “all”, so leaving this group alone fires the piggyback on every conversion of the entity:
- Conversion action — All, or one action.
- On a campaign: Site (All sites). Pick a site and Zone and Placement appear, but Placement offers nothing but All placements until you pick a zone too.
- On a site or placement: Advertiser (All advertisers). Pick one and Campaign appears.
-
Fill in Delivery:
- Fire for — All conversions, Post-click only or Post-view only.
- Piggyback sampling — 0 to 100, default 100. Shown only if your role may set sampling; otherwise new rows are created at 100.
-
Click Save. The dialog closes without a toast and the row appears at the bottom of the grid with Status on — or off, where Admin → Ad serving → Inventory & campaigns settings → Piggybacks default status has been turned off. A rejected save keeps the dialog open and marks the field: a malformed URL gives Invalid Url under the box and a Code url: Invalid Url toast — where your network’s URL-validation switch is off; with it on the console form saves any URL text (see the URL check under Caveats).
-
To change a row afterwards, edit it in the grid — Code/URL, Attribution, Sampling and the Status toggle are all editable in place on all three cards. A JS row’s code is shown highlighted, line breaks kept; its pencil opens it in a code editor, so a multi-line tag keeps its lines (and a
//comment ends where it should). To remove rows, tick them and click Delete, then confirm Delete record?.
The card is the same on a site and a placement, with the scoping columns swapped — a site or placement narrows by Campaign where a campaign narrows by Site and Placement.

Every type, column, macro, the row-selection rule, sampling arithmetic and the REST calls are in the Piggybacks reference.
Caveats and exceptions
Who can do this. The Piggybacks card appears on campaign, site and placement pages for the network manager, who also gets the JS pixel tracking with piggybacks block on the Pixel Tracking tab. Publishers and advertisers have no Piggybacks card and no piggyback block unless an administrator adds the feature to the role. Sampling is hidden for every role until an administrator grants it separately; someone whose role cannot set it does not see the Sampling column, the REST API returns the field as null for them, and editing other fields keeps the stored sampling value. A campaign piggyback needs update on the campaign but only view on the site you scope it to. A site or placement piggyback needs only a view share — of the site, or of the placement’s site — and view on the campaign you scope it to: a publisher who may not change the site created for them still manages its piggybacks. So with a Can view share the card on a site or placement works in full — the on/off switch, Add, the inline edits and Delete — while the rest of the page stays read-only; on a campaign shared for viewing the grid renders without toolbar or checkboxes, and its cells and Status toggle are locked. Exact grants: User roles.
Which type to use. Use URL (server-side) whenever the partner accepts a plain call. It does not depend on the visitor’s browser at all, so it also covers app, CTV and server-to-server conversions, and it needs nothing installed on the conversion page. Use JS code (client-side) when the partner will only credit a hit made by the visitor — Google Ads, GA4, Meta and most partner JS SDKs match on their own third-party cookie and on the visitor’s real browser. A server-side call from the ad server’s data centre is, to them, a request from the wrong device in the wrong country, and is either ignored or attributed wrongly. Neither type can affect the conversion itself: a URL piggyback’s response is logged and discarded, and a failure is not retried.
A JS row only runs if the conversion page can receive it. Only two of the five things Conversion Tracking Code hands out can: the Snippet (landing-page helper) on both its post-click and post-view paths, and the Pixel Tracking tab’s JS pixel tracking with piggybacks block. The plain JS pixel tracking, the Pixel tracking URL and a Postback (S2S) cannot — an image cannot run anything and a postback has no browser. URL rows are unaffected: the ad server calls them itself. The two capable integrations treat consent differently: the Snippet withholds client-side piggybacks from a visitor who refused consent — the conversion is still counted, but no third-party tag is asked for — while the older JS pixel tracking with piggybacks snippet has no such check and delivers them regardless. The consent it reads is the one recorded on the publisher’s page at ad-request time, not a consent banner on the conversion page. Full table: reference.
A saved change reaches the ad server on its next cache reload — every ten minutes on the default schedule — not instantly. The same applies to switching the card on or off and to deleting a row. Rows that are switched off, and every row on a card that is switched off, are not loaded into the ad server at all, so they cannot match and cannot affect sampling.
Expired and rejected conversions never fire piggybacks. When a click or view did match but was older than the action’s attribution window, the conversion is recorded as a Post-click (expired) / Post-view (expired) diagnostic with no revenue — and the ad server returns before it reaches any piggyback code, whatever Fire for says. A conversion caught as a duplicate, by fraud detection or by a capping exclusion skips the URL piggybacks and is handed no client-side markup. And a conversion has to resolve to a campaign, a placement and an action before any piggyback is considered: a hit the ad server cannot match to all three fires nothing, however the piggybacks are scoped.
Narrowing means “only what we positively identified”. Post-click only and Post-view only deliver only conversions classified that way; an Unattributed or System conversion reaches an All conversions row and no other. All as the Conversion action includes the system actions, so an All row also fires on every viewability and tracked video event — and a JS row never runs on a viewability event, so a viewable-impression pixel must be a URL row.
Scoping cannot be edited after the fact. The grid’s editors cover Code/URL, Attribution, Sampling and Status — not Conversion Action, Site, Placement or Campaign. To re-scope a row or move it to another action, delete it and add it again (over REST, the action of a site or placement piggyback can be changed in place).
Zone and Advertiser only narrow the lists; they are not stored. On the campaign dialog, Zone and Placement only appear once you pick a specific Site, and the placement list offers nothing but “All placements” until you pick a zone too. Resetting Site back to All sites removes both again and clears what you had chosen. Advertiser on the site and placement dialogs works the same way: it filters the campaign list and is not saved.
The URL check depends on your network’s strict URL validation. It applies only to URL
(server-side) rows, and strict validation is on unless Epom support has relaxed it for your
network (a server-side setting). With it on it is stricter than it looks: the address needs
an http, https or ftp scheme (or a custom scheme Epom has allowed for your network) and a
host under a registered top-level domain. Macros survive it — $$NAME$$, ${NAME}, {name},
{{name}}, [name], %%NAME%% and __NAME__, so ?tid=$$TRANSACTION_ID_STR$$ is fine — but
reserved test domains are not: https://x.partner.example/px is refused as Invalid Url where
https://x.partner.example.com/px passes. With validation relaxed, the console dialog
checks nothing and saves any text, and over REST only the schemes that run script or read local
files (javascript:, data:, file: and the like) are refused. The campaign card’s in-place
edit of Code/URL additionally checks the address in the browser (URL must be valid)
whichever way validation is set. JS rows are never URL-checked, so a broken tag fails silently in
the browser.
A mistyped macro is sent to the partner verbatim. A macro the ad server recognises but
cannot resolve is replaced with nothing — so ?ref=$$PAGE_DOMAIN$$ arrives as ?ref=, empty,
because a conversion has no page. A macro it does not recognise, such as a typo, is not touched
at all and arrives as the literal text $$PAGE_DOMIAN$$. Check new rows against the Piggyback
macros list — 50 entries while the network’s entity-name macros are on, six fewer for each side
(publisher, advertiser) that has them off.
URL rows share the lowest sampling among those that fire together. URL rows are decided once per conversion, from the lowest Sampling among the URL rows that fire for it — either every one of them fires or none does — so a 5 % row throttles a 100 % row next to it. If you need one partner sampled and another not on the same conversions, keep them on different levels of the hierarchy that do not overlap, or make the sampled one a JS row (JS rows each roll their own dice). Sampling is not free: a conversion whose URL piggybacks were sampled out is written to the advertiser’s statistics only, without the publisher-side attribution. The arithmetic: reference.
Inside the client-side frame. A tag runs inside a same-origin frame of its own that stays on
the page after it has run — 1×1 and positioned off-screen rather than hidden, because some tags
measure a hidden frame as unrenderable and decline to fire, and removing it would cancel requests
still in flight; an advertiser’s developer finding it in the DOM is seeing normal behaviour. The
tag sees an empty document.referrer, because the frame’s own document has none; everything else
is intact — top.location returns the real conversion page, and so does the Referer header on
the tag’s own requests. There is no piggyback macro that can substitute for it. A tag that looks
for an element on the advertiser’s page has to say parent.document. The advertiser’s
Content-Security-Policy applies to the frame exactly as it would to a tag pasted into their page:
a partner domain their policy does not allow is blocked by the browser, and the advertiser has to
allow-list it.
The Code/URL column shows every value in full. A long URL breaks over as many lines as it needs instead of pushing Sampling and Status out of view, and a long JS tag scrolls inside its own box. On a narrow window the grid can still scroll sideways.
Not working?
| Symptom | Check | Where |
|---|---|---|
| The partner receives nothing at all | The row or the card is switched off; or you saved less than ten minutes ago and the ad server has not reloaded. | the Status toggle and the card switch; the time since the save |
| Conversions are counted but no piggyback fires for them | They are expired or rejected (duplicate, fraud, capping) — those never fire; or the conversion could not be resolved to a campaign, placement and action. | the Expired post-click / post-view columns and the Conversions Log |
| A Post-click only row misses conversions a partner expected | They are Unattributed or System, which reach All conversions rows only. | the row’s Attribution column; the report’s Attribution split |
| A JS row never runs | The conversion page uses the plain JS pixel, the image URL or a postback — none can run a tag. Or the visitor refused consent and the Snippet withheld the tag. | which block is on the conversion page; easq('debug')’s third-party tags rendered line |
| A viewability pixel never fires | It is a JS row — a JS row never runs on a viewability event. Make it a URL row. | the row’s Type |
| The partner reports hits from “the wrong country / device” | A URL row for a partner that matches on the visitor’s own browser cookie. Switch to a JS row. | the row’s Type |
| Invalid Url on save | No http/https/ftp scheme, a reserved test domain (.example), or a typo. | the URL; your network’s URL-validation mode |
| The URL arrives with an empty parameter | A recognised macro with nothing to resolve to at conversion time ($$PAGE_DOMAIN$$, IP, user agent, referer, device). | the Piggyback macros list |
The URL arrives with literal $$…$$ text | A macro the ad server does not recognise — a typo. | the Piggyback macros list |
| A 100 % row fires on only a fraction of conversions | A lower-sampled URL row fires for the same conversions and the lowest value wins. | the Sampling column of every URL row on the campaign, site and placement |
| Publisher reports lost conversions after you added sampling | Sampled-out conversions are written to the advertiser’s statistics only. | the sampled row |
| Sampling is not in the dialog or the grid | Your role lacks the sampling permission; rows are created at 100. | User roles |
| Cannot change the row’s action, site, placement or campaign | Scoping is not editable in the grid. Delete and re-add. | the row |
| Placement offers only All placements | No zone picked yet. | the dialog’s Zone field |
The tag cannot read document.referrer or the page’s elements | It runs in its own frame: use top.location / parent.document. | the partner’s tag |
| The tag is blocked in the browser | The advertiser’s CSP does not allow the partner’s domain. | the conversion page’s CSP; the browser console |
Reference
The essentials. The full tables — what you can paste into a JS row, the per-integration delivery table, how the ad server picks rows, sampling arithmetic, the macro list and the REST calls — are on the subpage Piggybacks reference.
| Field / column | Meaning |
|---|---|
| Type | URL (server-side) — the ad server issues the request itself, asynchronously, straight after the conversion is recorded; validated on save. JS code (client-side) — the markup is returned with the conversion response and runs in the visitor’s browser, inside a frame of its own; not validated. |
| Code/URL | The partner’s URL or tag, macros allowed (conversion-time subset only). |
| Conversion action | All, or one action; All includes the system (viewability and video) actions. |
| Site / Placement (campaign card) · Campaign (site and placement cards) | Scoping; “all” ignores that dimension. |
| Fire for → Attribution column | All conversions (post-click, post-view, System, Unattributed) · Post-click only · Post-view only. |
| Piggyback sampling | 0–100, default 100; 0 never fires, 100 always. URL rows share the lowest value among those firing together; JS rows roll independently. |
| Status | On/off per row; off rows are not loaded into the ad server. |
- The two types and which snippets deliver a client-side piggyback
- What you can paste into a JS row
- Fire for and grid columns
- How the ad server picks the rows and how sampling is applied
- Macros
- Over the REST API
Related pages: