Overview
This article provides a comprehensive list of all macros available in the Trackier panel, along with their definitions and usage context. These macros can be used in tracking links, postbacks, and advertiser URLs to dynamically pass campaign, publisher, device, and conversion-related information.
Macros automatically replace themselves with real-time values when a click or conversion occurs.
Complete List of Macros in Trackier
Below is the structured and categorized list of macros available in the Trackier panel for easier understanding.
1. Campaign Macros
These macros provide campaign-related information.
Macro | Definition |
{camp_id} | Short ID of the campaign |
{campaign_id} | Long hashed ID of the campaign |
{campaign_title} | Campaign title |
{tdomain} | Tracking domain on which the campaign runs |
Example
https://advertiser.com?cid={campaign_id}When triggered, {campaign_id} will be replaced with the actual campaign ID.
2. Publisher (Affiliate) Macros
These macros provide publisher-related details.
Macro | Definition |
{publisher_id} | Publisher ID running the campaign |
{aff_id} | Long publisher ID (24 characters) |
{aff_name}, {aff_username} | Publisher name or username |
{affiliate_ref}, {publisher_ref} | Affiliate reference ID |
{pub_camp_id} | Publisher campaign ID (iOS 14.5+) |
{pub_group_id} | Publisher group ID |
{aff_chain} | Pass sub-IDs in publisher postback (iOS 14.5+) |
Example
https://advertiser.com?pub={publisher_id}3. Click Tracking Macros
These macros capture click-related data.
Macro | Definition |
{click_id} | Unique click event ID |
{click_time} | Timestamp of click |
{click_datetime} | Click date and time (Y-m-d H:i:s) |
{referer} | Referring domain |
{user_agent} | Browser used |
{device} | Device type (desktop, mobile) |
{device_lang} | Device language |
{ip}, {conversion_ip} | Click IP and conversion IP |
{country_id} | 2-digit country code |
{region} | State/Region |
{city} | City |
Important
{click_id} is mandatory for accurate conversion tracking. It links conversions back to the original click.
4. Device & App Macros
These macros capture device and app-related information.
Macro | Definition |
{gaid} | Google Advertising ID |
{idfa} | Apple Identifier for Advertising |
{android_id} | Android Device ID |
{device_id} | Device ID for app installs (Postback only) |
{app_id}, {app_name} | App ID and App Name |
{os} | Operating System |
{os_version} | Operating System Version |
{conn_type} | Connection type |
{isp} | Internet Service Provider |
5. Advertiser Macros
These macros provide advertiser-related information.
Macro | Definition |
{adv_id} | Long advertiser ID |
{advertiser_id} | Short advertiser ID |
{advertiser_ref} | Advertiser reference ID |
{advertiser_name} | Advertiser name |
6. Revenue & Payout Macros (Postback Only)
These macros are used in postbacks and conversion tracking.
Macro | Definition |
{payout} or {sale_amount} | Payout in default currency |
{currency} | Currency code (3-letter) |
{payout_usd} | Payout in USD |
{payout_eur} | Payout in EUR |
{original_sale_amount} | Original sale amount passed by advertiser |
{original_sale_currency} | Currency of original sale amount |
{conv_revenue} | Revenue of default goal |
{conv_rp_currency} | Revenue currency |
{txn_id} | Transaction ID |
7. Goal Macros (Postback Only)
Macro | Definition |
{goal_id} | Goal ID |
{goal_title} | Goal title |
{goal_value} | Goal value |
{goal_name} | Goal name |
{goal_val} | Goal value |
{note} | Conversion note |
8. Tracking Parameter Macros
These macros capture custom parameters appended in tracking links.
Macro | Definition |
{p1} to {p15} | Tracking parameters in tracking URL |
{sub1} to {sub15} | Tracking parameters in image pixel URL |
{erid} | Additional tracking parameter |
{source} | Sub publisher ID |
{sub_source} | Sub source ID (iOS 14.5+) |
{source_enc} | Encoded source value |
{date_enc} | Encoded date value |
Example
If tracking URL contains:
https://track.domain.com?sub1=facebook
Then {sub1} will return "facebook".
9. Landing Page Macros
Macro | Definition |
{url_id} | Numeric ID of landing page used |
{url}, {path} | Used for deep linking (click tracking only) |
Note: If the default landing page is used, {url_id} may return empty.
10. Random Macros
These macros generate random values.
Macro | Output |
{random_10} | Random number between 0–10 |
{random_25} | Random number between 0–25 |
{random_50} | Random number between 0–50 |
{random_100} | Random number between 0–100 |
{random4} | Random number 1000–9999 |
{random5} | Random number 10000–99999 |
{random6} | Random number 100000–999999 |
{random} | 7–15 digit alphanumeric ID |
Example
&subid=pub_{random_100}This will dynamically generate a random number.
11. Conversion Macros
Macro | Definition |
{conversion_id} | Conversion record ID |
{conversion_status} | Conversion status |
{conversion_date} | Conversion date |
{conversion_datetime} | Conversion date and time |
{conversion_time} | Conversion time |
{unix_time_stamp} | Unix timestamp |
12. Platform-Specific Click IDs
Macro | Definition |
{fbclid} | Facebook Click ID |
{gclid} | Google Click ID |
{wbraid} | Google iOS tracking parameter |
{gbraid} | Google Android tracking parameter |
13. E-commerce Macros
Macro | Definition |
{esku} | Product SKU |
{ecqu} | Product quantity |
{epid} | Product ID |
{epn} | Product name |
{epbrand} | Product brand |
{coupon_code} | Coupon code |
How Macros Work – Simple Flow Example
A user clicks a Trackier tracking link.
Macros such as {click_id}, {campaign_id}, and {publisher_id} are generated.
When conversion happens, these values are passed to the advertiser via postback.
Trackier matches the conversion using {click_id}.
Conclusion
Macros in Trackier allow dynamic passing of campaign, publisher, device, and conversion data. They are essential for accurate tracking, reporting, and attribution.
Always ensure:
{click_id} is implemented correctly.
Postback-only macros are used only in postbacks.
Macros are placed correctly in advertiser and publisher URLs.
Proper implementation ensures seamless communication between Trackier, publishers, and advertisers.
Broaden your knowledge:
We want to assure our customers that Trackier provides an in-house customer support team available for instant query resolution. You can reach out to us via email at support@trackier.com or directly engage with our in-house agents through our live chat feature.
