Skip to main content

CJ

Rokt Ads enables brands to engage customers at the Transaction Moment, the critical point in the purchase journey when shoppers are most attentive and likely to take action. Integrating CJ (previously known as Commission Junction) with Rokt Ads allows advertisers to “close the loop” by passing key customer identifiers and conversion attributes directly from CJ’s Universal Tag into Rokt.

Supplying rich, timely data like hashed email addresses, transaction values, and order IDs enables Rokt to optimize targeting and refine bidding strategies in real time.

The CJ integration for Rokt delivers two core benefits:

  • Unified measurement across channels. Your Rokt-attributed conversions appear directly in CJ alongside those from other partners, providing a holistic view of performance across affiliate, ecommerce, and advertising channels.
  • Enhanced optimization with Rokt’s AI. By integrating comprehensive and high-quality conversion data from CJ to Rokt, you empower Rokt’s optimization engine (“Rokt Brain”) to continuously improve audience modeling and bidding, resulting in stronger ROI, lower CPA, and higher ROAS.

By linking CJ’s Universal Tag with Rokt Ads, you maintain centralized reporting in CJ while unlocking the full power of Rokt’s AI-driven optimization through enriched, privacy-compliant signals. This ensures maximum campaign performance and transparency, in line with Rokt’s best-in-class integration standards.

Prerequisites

Make sure you have the following ready:

  • A CJ Advertiser account with the Universal Tag enabled.
  • Action IDs configured in CJ for the conversion events you want to track (for example, lead, signup, or purchase).
  • Your Rokt Account ID and API keys, provided by your Rokt representative. You don’t need to enter your Rokt Account ID or API keys in CJ yourself. Provide them to your CJ account team when requesting Test Mode, and they will enable the integration on their side.

If you’re not sure whether your CJ Universal Tag is active, log into your CJ account and check under Account > Tracking Integration > Universal Tag.

Setup

Follow the steps below to connect your CJ Universal Tag with Rokt Ads.

1. Confirm Universal Tag setup

  1. Log in to your CJ Advertiser Account.
  2. Navigate to Account > Tracking Integration > Universal Tag.
  3. Confirm that the Universal Tag is already placed on your site.
note

If the Universal Tag isn’t installed yet, see CJ’s Universal Tag documentation or contact your CJ account team. The tag must be placed on your site’s conversion pages (for example, thank-you or confirmation pages). It can also be deployed via a tag manager such as Google Tag Manager.

  1. Verify that the correct Action IDs are configured for the conversion types you want to track (for example, lead, signup, or purchase).

What are Action IDs?

In CJ, an Action ID is a unique code that represents a specific type of conversion you want to track. You might use one Action ID for a purchase, another for a signup, and another for a lead form submission. When your Universal Tag fires, the Action ID tells CJ which kind of conversion occurred. This ensures conversions are categorized correctly in CJ’s reporting.

Your Action IDs must align with the events you want Rokt to optimize toward (such as purchases or signups).

You can view or create Action IDs in your CJ Advertiser Account under Account > Tracking Integration > Universal Tag.

note

Each type of conversion event you want to track (e.g. purchase, signup) requires its own Action ID. You’ll use these IDs when configuring your Rokt integration.

2. Enable hashed email tracking

  1. Configure your site to hash customer email addresses client-side using SHA-256 (lowercased, trimmed, UTF-8, no salt).
  2. Integrate the hashed value into the email_hash parameter within the Universal Tag.

Example:

<script type="text/javascript">
var cjData = {
actionID: "1234", // Your CJ Action ID
email_hash: roktEmailHash, // SHA-256 hashed email from checkout
orderID: roktConversionId, // Unique order/conversion ID
currency: roktCurrency, // e.g., "USD"
amount: roktAmount // Optional, order total
};
</script>
<script src="https://www.emjcd.com/tags/c?tid=UNIVERSAL_TAG_ID"></script>

3. Add Rokt fields to your CJ tag

Update your CJ Universal Tag so that it passes the right values from your checkout system into CJ’s required parameters. This ensures that conversions tracked in CJ can also be attributed to Rokt.

  1. Open the page or tag manager where your CJ Universal Tag is implemented (typically your confirmation/thank-you page).
  2. In the tag’s configuration, add the following parameters and map them to the corresponding values from your checkout system:
CJ parameterWhat to passSource
orderIDA unique conversion IDYour transaction/checkout system (also used by Rokt)
email_hashSHA-256 hashed customer emailGenerated client-side at checkout
amountTransaction amount (optional but recommended)Your checkout system
currencyCurrency code (e.g. USD)Your checkout system
actionIDCJ Action ID that matches the conversion typeProvided in your CJ account

3. Save your changes and confirm that the Universal Tag fires with all values populated when a test conversion occurs.

4. Test in CJ Test Mode

Before going live, you’ll need to run tests in CJ’s Test Mode to make sure the Universal Tag is firing correctly and all required fields are being captured.

  1. Enable Test Mode

    • Contact your Rokt representative with your Rokt Account ID and API keys.
    • Ask your CJ account team to enable the Rokt integration in Test Mode.
  2. Trigger a test conversion

    • Complete a test transaction (for example, a signup or purchase) on your site.
    • Make sure the test triggers your checkout confirmation page where the CJ Universal Tag is placed.
  3. Check the CJ tag firing

    • Use your browser’s developer tools (Network tab) to confirm that the CJ tag loads.
    • Look for the parameters being passed (orderID, email_hash, amount, currency, actionID).
    • Verify that the hashed email is in SHA-256 format and that the order ID is unique.
  4. Validate in CJ reporting

    • Log in to your CJ Advertiser Account.
    • Navigate to Reports > Transactions > Action Detail.
    • Confirm that your test conversion appears with the correct values for order ID, amount, currency, and action ID.
  5. Confirm with Rokt

    • Let your Rokt representative know when the test is complete.
    • They will confirm that the same conversion event is visible in Rokt’s reporting.

Once both CJ and Rokt show the test conversion correctly, you’re ready to move on to production.

Go Live

Once testing is successful, your CJ account team will move the integration from Test Mode to Live Mode at your request:

  1. Review test results with your Rokt representative.
  2. Once validated, request CJ to switch the integration from Test Mode to Live Mode.
  3. Complete an end-to-end test in production to confirm successful setup.
  4. Monitor CJ reporting to ensure conversions from Rokt Ads continue to flow correctly.

Your Rokt representative will confirm when production traffic is live.

Was this article helpful?