Skip to content

TerraLeads

Learn how to integrate Terraleads with AnyTrack for automated conversion tracking. Set up postback URLs to track affiliate conversions and send data to your ad platforms for campaign optimization.

/>

How does the TerraLeads AnyTrack integration work:

Section titled “How does the TerraLeads AnyTrack integration work:”
  1. Traffic: When visitors land on your website, AnyTrack collects traffic source data and First Party data.
  2. Engagements: When visitors click on your TerraLeads affiliate links, AnyTrack does a few things:
    1. Collects granular data tied to the OutboundClick.
    2. Triggers Event Tracking API requests to your Tracking Tags and analytics.
  3. Conversions: When visitors convert on the merchant’s website, AnyTrack receives real time conversion data through Postback URL.
  4. Attribution: AnyTrack processes the conversion data and reports it across various reporting sections of the AnyTrack Dashboard.
  5. Conversion API: AnyTrack then sends your conversions to your Ad Platforms’ Conversion API so you can feed your ad platform’s Machine Learning, AI and automatic optimization according to 100% of your conversion data.
ReferenceValueInformation
Tracking GroupterraleadsThe Tracking Group reference can be used to activate AutoTag .
Subid Parametersub_idThe Subid Parameter used to pass the AnyTrack click_id.
Tracking MethodPostback URL-
Event NameDetailsData Source
OutboundClickWhen a visitor clicks on TerraLeads offer links.AnyTrack JS Tag
LeadWhen a free registration is recorded in TerraLeads.Postback URL
PurchaseWhen a user generates a commission in TerraLeads.Postback URL

The Postback URL is fully pre-defined and ready to be implemented with your TerraLeads account.

https://t1.anytrack.io/hBtoE3hN/collect/terraleads?offer_id={offer_id}&lead_id={lead_id}&`sub_id`={`sub_id`}&sub_id_1={sub_id_1}&sub_id_2={sub_id_2}&sub_id_3={sub_id_3}&sub_id_4={sub_id_4}&payment={payment}&status={status}&ip={ip}&country={country}&time={time}

Step #1: Add TerraLeads to your AnyTrack Account

Section titled “Step #1: Add TerraLeads to your AnyTrack Account”
  1. Go to the Integration Catalog, search for TerraLeads.

  2. Now click on the TerraLeads cardand then Click on Install.

  1. Copy the predefined Postback URL
  2. Go to your account to access your event tracking settings page.
  3. Click the “edit” settings button
  4. Paste the postback URL
  5. Save

Step #3: Adjust the Conversion Event Mapping

Section titled “Step #3: Adjust the Conversion Event Mapping”

The Event Mapping allows you to define which events to track and map them to Conversion Events you will forward to your Ads Integrations (e.g., Facebook Conversion API)


This section will enable you to validate the main aspects of your setup.

Since Tracking starts when visitors clicks on offer links, you verify that your links are tracked and AutoTagged.

  • Default: By default, AnyTrack automatically identifies and AutoTags TerraLeads links found on your website.
  • AutoScan: AnyTrack scans links that are embedded in redirects plugins and AutoTags them accordingly.
  • Manual:
    • Tracking Group Attribute: You add the tracking group attribute to links according to their tracking requirements. For example: data-tracking-group="terraleads" or rel="terraleads". More about Tracking Group.
    • Click ID Token: You Manually append the subid: &sub_id=--CLICK-ID-- to the offer link.

Once the links are set up, you can check in your TerraLeads account reports and see whether the sub_id parameters are passed to the offer links.

Here is an example of how you would manually update links fromterraleads:

<a href="https://example.foo/goto/terraleads" data-tracking-group="terraleads">Hover on theTerraLeads Demo
Link to see the AnyTrack `click_id`</a>

📘 Tracking

Tracking Group refers to the integration technology. For example, TerraLeads Tracking Group tracking group is terraleads and ClickBank is ClickBank.

To validate your setup, you wait for a conversion or trigger a test conversion yourself and inspect the conversion logs.

TerraLeads conversion payload example

{
"AnyTrack": "1100l35864",
"customer_type": "existing",
"country": "US",
"referer": "https://www.chewy.com/",
"search_keyword": null,
"search_engine_id": null,
"conversion_time": "1684692689",
"`conversion_id`": "1011l2002827904",
"publisher_reference":"mz7yYainzaN6hkc52QVBg",
"publisher_commission": "10.57",
"creative_id": "0",
"source_referer": null,
"advertiser_reference": null,
"conversion_type": "1",
"creative_type": "0",
"conversion_reference": "1354998698",
"metadata_query_string": null,
"currency": "USD",
"tracking_method": "clickref",
"value": "52.85",
"items": [
{
"item_code": null,
"item_id": "1011l860699483",
"item_sku": "332503",
"item_commission": "3.5720",
"item_type": "S",
"item_gp": null,
"item_publisher_commission": "3.5720",
"item_meta": null,
"item_status": "1",
"item_value": "17.8600",
"item_category": "11130",
"item_vertical": null
},
{
"item_code": null,
"item_id": "1011l860699484",
"item_sku": null,
"item_commission": "0.0000",
"item_type": "S",
"item_gp": null,
"item_publisher_commission": "0.0000",
"item_meta": null,
"item_status": "1",
"item_value": "0.0000",
"item_category": "COMMISSION",
"item_vertical": null
},
{
"item_code": null,
"item_id": "1101l859617416",
"item_sku": "677350",
"item_commission": "6.9980",
"item_type": "S",
"item_gp": null,
"item_publisher_commission": "6.9980",
"item_meta": null,
"item_status": "1",
"item_value": "34.9900",
"item_category": "2802",
"item_vertical": null
}
],
"campaign_id": "1100l517",
"query_string": null,
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Mobile/15E148 Safari/604.1"
}

FAQ and Troubleshooting

FAQ was last reviewed on 2026-06-10

Can I import past conversions into AnyTrack?
No. AnyTrack can only ingest conversions that have been triggered following a visitor session on your website.
Can I track direct linking campaigns?
Yes, but this requires a custom setup. Learn how to setup a direct linking campaign with AnyTrack
Can I use a different <code>subid</code> parameter than the one predefined by AnyTrack?
No.
Can I track conversions without the <code>click_id</code>?
No. The click_id passed to the TerraLeads links is required to track conversions.
The Conversion Event Name is not what I am expecting, how can I change it?
You can update the Event Mapping in the Integration page.