OpenAdLibraryOpenAdLibrary
Affiliate & Media Buying

Taboola Macros & Native Network URL Parameters: The Cheat Sheet

The join key between your ad spend and your conversions is a macro. Here are the Taboola macros most buyers use, the Outbrain, MGID and Revcontent equivalents, and the template mistakes that quietly break tracking.

Editorial illustration: Taboola Macros & Native Network URL Parameters: The Cheat Sheet

Taboola macros are dynamic tokens, such as {click_id}, {site} and {campaign_id}, that Taboola's Realize platform fills with real values automatically when an ad is served. Added to your landing-page URL, they tell your tracker which publisher site, campaign and ad produced a visit, and which click ID to attach to a conversion. Without macros your tracker cannot tell which site or ad sent a visit; with them you can compute cost per conversion at the site level and cut what loses. This cheat sheet covers the macros Realize documents, the matching dynamic parameters on Outbrain, MGID and Revcontent, and the handful of template mistakes that can break tracking.

Why macros decide whether you can optimize at all#

Realize prices campaigns per click (CPC) or per thousand impressions (CPM), and it reports conversions only when you set up its tracking. Your own decisions (pause this site, raise this bid, kill this ad, scale this campaign) usually depend on joining the network's spend data to your tracker's conversion data. The join key is the macro.

Realize supports two ways to track conversions, the Taboola Pixel and server-to-server (S2S) tracking, and recommends implementing one of them. The S2S setup works like this:

You add a parameter set to {click_id} to the campaign's tracking code; Realize's S2S guide says conversions cannot be recorded without it, and the same parameter can be added at the item level. Taboola fills it with a unique click ID. Your tracker (or your own backend) stores that click ID against the session. When the visitor converts, you fire Realize's postback URL, https://trc.taboola.com/actions-handler/log/3/s2s-action?click-id=CLICK_ID&name=EVENT_NAME, with the stored click ID and the Event Name you created in Realize; revenue, currency and orderid are optional parameters. Realize attributes the conversion to that click, and with conversion tracking in place Maximize Conversions can optimize toward real conversions instead of page views and impressions (Realize help center: S2S guide updated 26 October 2025, Maximize Conversions article updated 2 August 2026).

Skip the macros and none of that chain exists. You will see sessions in analytics and spend in the dashboard, with no reliable way to connect them. Realize also offers the Taboola Pixel, an on-page tag, and describes S2S tracking as a way to track conversions without installing it. Its help center recommends implementing the pixel or S2S tracking and does not say to run both, so check how your setup avoids counting a conversion twice before you do. Because an S2S postback is sent from your server rather than from a script in the visitor's browser, it does not depend on the browser running a tag, which is why some buyers treat it as the source of truth.

The Taboola macro cheat sheet#

Most Taboola macros use single curly braces and lowercase names; the two GDPR macros use a dollar sign and uppercase names. This is the list in Realize's "Creating and Adding URL Parameters for Tracking" article (last updated 27 April 2025), plus {click_id}, which Realize documents in its S2S guide:

Macro What Realize says it returns What you use it for
{click_id} A unique click ID (documented in Realize's S2S guide, not in its URL-parameter list) The S2S join key: Realize says conversions cannot be recorded without it
{site} The publisher site or application name Site-level optimization and blocking
{site_id} A unique site ID for the publisher site or app Same job, as a stable key
{site_domain} The name of the website or URL Human-readable site reporting
{campaign_id} A unique Realize campaign ID Multi-campaign reporting
{campaign_name} The campaign name as defined in Campaign Management Readable reports (mind URL encoding)
{campaign_item_id} A unique Realize item ID (the specific ad) Ad-level comparison
{creative_name} A custom creative name given by the advertiser (optional field) Matching Realize items to your own naming
{custom_id} A custom creative ID given by the advertiser (optional field) Matching Realize items to your own IDs
{title} The headline of your item Headline-level analysis
{thumbnail} The image or video URL Joining image variants across ads
{platform} The user platform on which your item was presented, returned as Desktop, Mobile or Tablet Device splits
{timestamp} The timestamp for when the item was served Debugging and daypart analysis
{cachebuster} A unique, random numeric string generated per impression Appending a unique value to each request, for example to avoid cached tracking calls
{cpc} The real-time CPC bid of each click; the value is encrypted and needs a decryption script Cost analysis, only if you can decrypt it
${GDPR} Whether GDPR applies (0 = does not apply, 1 = applies) Consent handling
${GDPR_CONSENT_XXXXX} The TC string, with the numeric vendor ID Consent handling

A complete tracking URL looks like this:

https://track.yourdomain.com/click?clickid={click_id}&source={site_id}&camp={campaign_id}&ad={campaign_item_id}&device={platform}

Three practical notes. First, copy macro names exactly as Realize lists them, in the case shown: Realize's help article does not say how a mistyped or differently cased token is handled, so do not assume it will be replaced, and check the query string of your first live clicks. Second, you can add URL parameters at the campaign level, in the Tracking Code section, where they are appended to every ad in that campaign, or at the ad level, in each ad's destination URL. Realize says not to start the tracking code with a question mark or an ampersand because it adds one itself, and its default tracking code for a new campaign is utm_source=taboola&utm_medium=referral, which you can edit. Third, Realize may add or change macros, so verify against the Realize help article before a large launch; it showed a last-updated date of 27 April 2025 when we checked it on 7 October 2026. If you are setting up a first campaign end to end, the step-by-step Taboola setup guide shows where the tracking fields live in the interface.

The same concepts on Outbrain, MGID and Revcontent#

The four networks covered here expose the same four concepts (click, placement, campaign, creative) under different names and syntax. The mapping, checked against each network's help pages on 7 October 2026:

Concept Taboola (Realize) Outbrain MGID Revcontent
Syntax {macro} {{macro}} (or [macro]) ${MACRO} {macro}
Click ID {click_id} {{ob_click_id}} ${CLICK_ID} not listed on Revcontent's tracking-variable page
Placement {site} / {site_id} {{publisher_id}} / {{section_id}} ${WIDGET_ID} {widget_id}
Placement name {site_domain} {{publisher_name}} / {{section_name}} none found {site_name}
Campaign {campaign_id} {{campaign_id}} ${CAMPAIGN_ID} {boost_id}
Creative {campaign_item_id} {{ad_id}} / {{ad_title}} ${TEASER_ID} {content_id}

Details worth knowing:

Outbrain uses double curly braces (its help center also allows square brackets), and its placement model is two-level: a publisher and a section, the specific widget position on that publisher. Consider optimizing on section, not just publisher, because different widget positions on one site can perform differently. MGID calls creatives "teasers," hence ${TEASER_ID}; its macros page lists them with a leading dollar sign and capital letters, and its widget IDs are the placement unit you will be blocking or bidding on. Revcontent organizes campaigns as "boosts," so {boost_id} is the campaign key; its tracking-variable page also lists {widget_id}, {content_id}, {content_headline} and {site_name}, and warns that using campaign-level and content-level tracking together can cause tracking discrepancies. "None found" in the table means we found no matching macro on that network's help page. Always copy macros from the network's current documentation: Outbrain, MGID and Revcontent.

One tracking template that survives all four networks#

Normalize on your side, not theirs. Define canonical parameter names — say clickid, source, camp, ad — and map each network's macros into them:

Taboola (Tracking Code field): clickid={click_id}&source={site_id}&camp={campaign_id}&ad={campaign_item_id} Outbrain (Tracking section): clickid={{ob_click_id}}&source={{section_id}}&camp={{campaign_id}}&ad={{ad_id}} Realize's Tracking Code field adds the leading ? or & itself, so do not type one; Outbrain's documented tracking examples also start without one. If you append the parameters to a full destination URL instead, start them with ?.

Your tracker, your reports and your kill rules can then work the same way everywhere, and adding a fifth network becomes a mapping exercise. Route clicks through a dedicated click-tracking domain so you can switch tracking software later without rebuilding every campaign.

Prefer IDs to names in the template. {campaign_name} and {title} are free text that can contain spaces, ampersands and emoji. Realize's macro article does not say how these values are encoded, so test with a real click before relying on them and decode them in your tracker; an unencoded & inside a value can cut off the parameters after it. IDs are stable; names get edited mid-flight and split one row of data into two.

Macros and UTM parameters: run both, for different jobs#

UTM tags feed your analytics; macros feed your buying decisions. A sensible dual template sets utm_source=taboola and fills the rest dynamically, for example utm_medium=native, utm_campaign={campaign_id}, utm_content={campaign_item_id} and utm_term={site_id}, so your analytics traffic reports line up with the tracker's site reports. Realize's default tracking code for a new campaign is utm_source=taboola&utm_medium=referral, so use utm_medium=native only if you deliberately want to change that default. Just don't optimize from analytics alone: session counts and click counts can diverge (redirects, bounces before the tag fires, blocked scripts), so compare both before cutting a site.

Five macro mistakes that quietly burn budget#

  • Literal macros in the URL. A typo (wrong braces, wrong case, a stray space) can leave the token unreplaced, so your landing page receives the literal text {click_id}. Conversions stop joining, the campaign shows zero CVR, and you may kill an ad that was working. Inspect the query strings of your first ten sessions after every launch.
  • No site macro. Without {site} or {site_id} (or the widget ID macro on MGID and Revcontent) in the template you cannot build placement whitelists and blacklists from your own data, which limits placement-level optimization. The publisher and site ID is the basic unit of native media buying.
  • Postback without deduplication. If the same click ID can fire your postback twice (page refresh, retry logic, a user revisiting a thank-you page), you may double-count conversions and scale losers. Dedupe on click ID at the tracker, and check how Realize handles duplicate postbacks, which its S2S guide does not describe.
  • Names instead of IDs. A mid-flight campaign rename splits your data; see above.
  • Testing with real spend. Verify replacement with a minimum-budget test campaign in a cheap geo, not with your launch budget; Realize's S2S testing guide notes that you must already have campaigns created in order to test S2S links.

Reading a competitor's macros#

Tracking templates can leak. When an ad library traces a native ad's click path, the captured landing URL can preserve the advertiser's parameter string, with the macros already filled in. Open a competitor's captured Taboola ads in the Taboola ad spy tool and inspect the traced landing URLs: the tracker domain may indicate what software they run, the subid structure suggests what granularity they record, and a site ID in a subid suggests they track placement. What it cannot show is whether they act on it, what they spend or how they perform, so treat it as a lead for your own template, not a verdict on the operator. The redirect trail and captured landing pages for native ads are available on the free plan for the 20 newest ads; search and filters need the Founders plan. The full workflow from a captured ad to its funnel is covered in how to find competitor landing pages.

The bottom line#

Macros decide whether the rest of your media buying is measurable. Get {click_id} and a site macro into your template on day one, postback conversions server-to-server if you choose S2S, prefer IDs over names, and verify replacement before you scale anything. Networks can add or change macros, so recheck their help pages before a big launch; the four concepts they encode (click, placement, campaign, creative) are the same on the four networks covered here.

Frequently asked questions

What are Taboola macros?
Taboola macros are dynamic tokens, such as {click_id}, {site} and {campaign_item_id}, that Taboola's Realize platform fills with real values automatically when an ad is served. Added to your landing-page or tracking URL, they pass the site, campaign and ad (and, for S2S tracking, the click ID) to your tracker, which makes site-level and ad-level optimization possible.
How do I pass the Taboola click ID to my tracker?
Add a parameter set to {click_id} to your campaign's Tracking Code, for example clickid={click_id}; Realize adds the leading ? or & itself, so do not type one (in a full destination URL, start with ?). Your tracker stores the click ID against the session, and when a conversion happens you fire Realize's S2S postback, https://trc.taboola.com/actions-handler/log/3/s2s-action?click-id=CLICK_ID&name=EVENT_NAME, with that same ID and the Event Name you created in Realize. Realize then attributes the conversion to that click.
What is the Outbrain equivalent of Taboola's {click_id}?
Outbrain uses double curly braces (its help center also allows square brackets), and its click identifier macro is {{ob_click_id}}, which Outbrain describes as a server-to-server conversion ID. Outbrain's {{publisher_id}} and {{section_id}} correspond roughly to Taboola's {site_id}, and {{ad_id}} corresponds to {campaign_item_id}. The syntax differs but the four underlying concepts, click, placement, campaign and creative, map across the four networks covered here.
Why does my URL show {click_id} as literal text?
The token was not replaced. Check it against Realize's macro list for typos, braces and case (most Taboola macros are lowercase with single curly braces; the GDPR macros use a dollar sign and uppercase names), and check that you added it in the campaign's Tracking Code section or in the ad's destination URL. Realize's help article does not say how it treats an unrecognized token. Fix the template, then verify by inspecting the query string on a fresh test click before spending.
Do I need a tracking tool to use native ad macros?
Not strictly — you can pass macros into your own backend or even analytics UTMs — but a dedicated tracker or a purpose-built endpoint is the practical answer for S2S postbacks, click-ID deduplication and placement-level reporting. What matters is that something stores the click ID and its metadata, and can fire the network postback when a conversion lands.
The OpenAdLibrary Team
Written byThe OpenAdLibrary Team
Ad intelligence & native advertising research

We build OpenAdLibrary, the open ad-transparency platform. Every day our systems capture live native ads across Taboola, Outbrain, MGID, Revcontent, Teads, Yahoo and MSN, identify the real advertiser behind each one, and follow the click to its landing page. These guides distill what we see in that data so you can research the market faster.