Skip to content

CJ Affiliates

The article provides an overview of integrating CJ with AnyTrack to enhance conversion tracking and maximize ROI. This integration allows real-time conversion data from CJ to be sent to AnyTrack, which can then forward it to platforms like Google Ads and Facebook `Conversion API`, offering transparency and insights for campaign optimization. The setup involves adding CJ to AnyTrack, connecting the CJ account, and adjusting conversion event mapping, with detailed steps and troubleshooting tips provided for automatic implementation.

Integrating CJ with AnyTrack gives you the power to accurately track all your conversions and maximize ROI. With this integration, conversion data is sent from CJ directly to AnyTrack where it can be forwarded in real-time to platforms like Google Ads, Facebook Conversion API and TikTok API. This provides complete transparency into your campaigns’ performance so you know exactly which ones perform well and take action accordingly. Additionally, marketers gain access to powerful analytics & insights that help them optimize their campaigns for maximum efficiency.

How does the CJ AnyTrack integration work:

Section titled “How does the CJ 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 CJ 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 API Integration.
  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 GroupcjThe Tracking Group reference can be used to activate AutoTag .
Subid ParametersidThe Subid Parameter used to pass the AnyTrack click_id.
Tracking MethodAPI Integration-
Event NameDetailsData Source
OutboundClickWhen a visitor clicks on CJ offer links.AnyTrack JS Tag
LeadWhen a free registration is recorded in CJ.API Integration
PurchaseWhen a user generates a commission in CJ.API Integration

The API Integration is fully pre-defined and ready to be implemented with your CJ account.

  1. Go to the Integration Catalog, search for CJ.

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

  1. Navigate to the CJ Affiliates Developer Portal to generate your personal token.

  2. Register a new personal token and Copy it to your clipboard (ctrl+c)

  3. Find and copy your CJ Publisher id (cid)

  4. Add both values to your AnyTrack-CJ integration and click Connect.


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 CJ 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="cj" or rel="cj". More about Tracking Group.
    • Click ID Token: You Manually append the subid: &sid=--CLICK-ID-- to the offer link.

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

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

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

📘 Tracking

Tracking Group refers to the integration technology. For example, CJ Tracking Group tracking group is cj and ClickBank is ClickBank. The Tracking Group

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

CJ conversion payload example

{
"websiteName": "All About Pets",
"actionType": "item_sale",
"actionTrackerName": "Petlibro.com Purchase",
"pubCommissionAmountUsd": "12",
"commissionId": "3172553564",
"actionStatus": "new",
"shopperId": "Zojr5qPF3fVktRfjutq1YQ1I9ykZVgacsA",
"postingDate": "2023-05-21T01:00:31Z",
"items": [
{
"perItemSaleAmountPubCurrency": "120",
"quantity": 1,
"totalCommissionPubCurrency": "12"
}
],
"advertiserName": "PetLibro",
"eventDate": "2023-05-21T00:01:59Z"
}

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. Please refer to this article.
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 CJ links is required to track conversions.
The Conversion Event Name is not what I am expecting, how can I change it?
Not at this time. CJ Sends two types of events across all offers.