CJ Affiliates

Discover how to use AnyTrack.io to integrate CJ Affiliates and track your conversions across your ad platforms. Optimize your ROAS with easy-to-use conversion tracking and attribution.

CJ Integration Overview

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:

  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 pixels 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.

Technical details

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-

Standard Conversions

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 CJ API Integration

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

❗️

Before you begin

The CJ integration requires that the AnyTrack Tracking Tag in the head section of your website or landing pages. Learn now to Install the AnyTrack Tag on your website.

Setup Guide

Step #1: Add CJ to your AnyTrack Account

  1. Go to the Integration Catalog, search for CJ.
Integration Catalog
  1. Now click on the CJ cardand then Click on Install.
CJ Integration Page

Step #2: Connect your CJ account

  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. Return to the AnyTrack settings and Paste the token in the token field
  4. Add your CJ Publisher id
  5. Save

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 (ex: Facebook Conversion API)

CJ Conversion Event Mapping

Validate your integration

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

Link tracking

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

AutoTag Methods

🔥

Reminder about AutoTag:

AutoTag is a function that is enabled by default through the AnyTrack Tracking Tag, and that appends sid & click_id data to affiliate links. Learn more about AutoTag.

  • 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 from cj:

<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 Group

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

Conversion Tracking

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

Integration Conversion log

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 & Troubleshooting

  • 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 subid parameter than the one predefined by AnyTrack?

    No.
  • Can I track conversions without the click_id?

    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.
CJ Event Mapping

Take these steps to troubleshoot errors you encounter in AnyTrack

  • General troubleshooting

    • Verify that your tracking tag is set in the head section of your website.
    • If you're on the free plan, verify that you didn't reach the monthly traffic limit and upgrade if needed.
  • Conversion sources

    When you are not tracking conversions, or most conversions trigger an error follow the guidelines below.

🚧

Before you reach out to the tech support, please inspect the conversion log to see what type of errors you are getting and try to fix the integration by following these troubleshooting guidelines.

  • Native integrations

    Native integrations refer to platforms that are predefined in the catalog and should provide an error-free data flow.
    The most common error is that the click_id is unknown or missing. It happens when AutoTag could not be activated.
    • Check that your links are not hidden behind some javascripts or double redirects.
    • Check that the links are in a standard a element.
    • Try to manually set the tracking group attribute (check the integration guidelines).
    • Check whether your offers don't get traffic from websites where the AnyTrack Tag isn't set.
    • Conversion data doesn't trigger an error 🔴, but is not validated 🟢:

      • Check that the API Integration you've set matches the pre-defined API Integration we provide.
      • Copy the Event Reference from the Conversion Event Log and contact the support.
    • You're not getting any conversions:

    • Check that the API Integration is set and active in your platform.
    • Check that you're passing the correct AutoTag sid parameter to the offer link.
    • Check that the Postback URL is correctly inserted in the custom integration.