A macro is a placeholder variable in a tracking link that automatically gets replaced with real data when a user clicks on an offer.
Macros are wrapped in curly brackets — for example:
{gk_click_id}
{pub_member_id}
{gk_offer_id}
{gk_offer_name}You can use macros to pass contextual or user-specific information — such as the unique click ID, member id or campaign details without needing to hardcode any of that information into your URLs.
Think of macros as auto-filled placeholders that get replaced with real values at the exact moment an action occurs.
Each available macro corresponds to a specific data field within the GoKart system.
🧩 Example — The "Fill-in-the-Blank" Analogy
Imagine your tracking link is a form with blanks that get filled automatically when someone clicks:
Field | Description | Example Value |
| Unique ID for the user’s click |
|
| ID of the offer being clicked |
|
| ID of a publisher's member |
|
Before the click, the tracking link looks like this:
https://advertiser.com/tracking?click_id={gk_click_id}&offer_id={gk_offer_id}After the click, GoKart replaces the macros with actual values:
https://advertiser.com/tracking?click_id=84e7b1c9-1234-4c2a-b9e3-9126f6b4d9de&offer_id=789
This allows the advertiser to identify which user clicked which offer and attribute any resulting conversion to the correct source.
