Testing & Validation

This guide walks you through validating that the CJ Universal Tag is firing correctly on your site using browser developer tools.


πŸ“‹Before you test
  • The Universal Tag (Site Page Tag and Conversion Tag) must be implemented on your site before testing.
  • Test in an Incognito browser or clear all cookies/cache before testing.
  • Have your CJ Enterprise ID, Action Tracker ID, and Tag ID on hand to verify it appears in network payloads.
  • Disable any ad blockers that may suppress requests.

CJ Test Link

How to get a CJ test link
01
Log into
CJ Account Manager
β†’
02
Navigate to Tag Testing
Account β€Ί Tag Testing
β†’
03
Use existing link
or Create Test Link
β†’
04
Name the
test link
05
Enter destination URL
(must be https://)
β†’
06
Hit
Save
β†’
07
Click Place Test Order
to generate a link
↻ Each click on Place Test Order generates a new window with a unique cjevent appended to your URL.

Testing Scenarios

Retail
  • Scenario 1: No Discount Test
    Click a CJ Tracking Link, proceed with a purchase and do not apply any discount code at checkout.

  • Scenario 2: Whole Order Discount Test
    Click a CJ Tracking Link, proceed with a purchase and apply a whole-order discount code at checkout.

  • Scenario 3: Item Level Discount Test
    Click a CJ Tracking Link, proceed with a purchase and apply an item-specific discount code at checkout.

  • Scenario 4: Combination Discount Test
    Click a CJ Tracking Link and apply both an item-level and whole-order discount discount code at checkout.

All tests should include 2 products minimum, with one product having a quantity of 2. Please send a screenshot of the order confirmation page that includes order Id, product prices, discounts, and taxes.

Travel
  • Initial Reservation Purchase Test
    Click a CJ Tracking Link and proceed with a standard purchase of hotel/flight reservation.

    If you are utilizing our Open Ended Lifecycle Solution, we will need to test

    • Accepted
      The initial reservation is completed and the initial transaction updates from pending to accepted.

    • Declined
      The initial reservation is cancelled and the initial transaction updates from pending to declined.

Finance
  • Scenario 1: Standard Application Submission
    Click a CJ Tracking link and submit a credit card application with all required fields completed.

  • Scenario 2: Pre-Qualified Application
    Click a CJ Tracking link, complete a pre-qualification check, then proceed to full application submission.

  • Scenario 3: Card Approval
    Click a CJ Tracking link and submit an application that results in instant approval (validates approval-based commissioning if applicable).

  • Scenario 4: Checking Account Opening
    Click a CJ Tracking link and open a new checking account with initial deposit.

  • Scenario 5: Savings Account Opening
    Click a CJ Tracking link and open a savings or high-yield savings account.

Network Services
  • Scenario 1: Basic Signup
    Click a CJ Tracking link and complete a new internet/mobile plan signup with standard pricing.

  • Scenario 2: Promotional Rate Signup
    Click a CJ Tracking link and complete a signup using a promotional offer or discounted first-month rate.

  • Scenario 3: Bundle Signup
    Click a CJ Tracking link and sign up for a bundled package (e.g., internet + TV + phone).

  • Scenario 4: Plan Upgrade
    Click a CJ Tracking link as an existing customer and upgrade to a higher-tier plan (e.g., faster internet speed, more data).

The scenarios on this page represent commonly tested situations for each vertical. They are not exhaustive β€”your account may have additional action trackers, custom parameters, or program-specific requirements that require further testing. Contact your CJ Integration Engineer for a complete list of scenarios specific to your account setup.

Universal Tag validation steps

Open your browser's developer tools before navigating to your site:

  • macOS: Option + ⌘ + J
  • Windows / Linux: Shift + Ctrl + J

Click on the Network tab, then click your test link to load your site.

Step 1: Verify tag.js

The tag.js call loads the CJ tracking script on the page. It fires on every page load.

  1. Type tag.js into the Network tab's search filter
  2. Confirm the following:
    • Status Code: 200
    • Request URL: matches https://www.mczbf.com/tags/{tagId}/tag.js
🚧

The request URL will be different if you are utilizing the reverse proxy solution.

Step 2: Verify pageInfo

The pageInfo call sends page visit data to CJ. It carries the payload from your cj.sitePage object.

  1. Clear the filter and type pageInfo
  2. Confirm the following:
    • Status Code: 200
    • Payload: response contains data
    • Enterprise ID: appears in the payload

Step 3: Verify seteventid

The seteventid call stores the cjevent cookie from the affiliate click.

  1. Clear the filter and type seteventid
  2. Confirm the following:
    • Status Code: 200
    • This call only fires when a cjevent value is present in the URL

Step 4: Verify the Conversion Tag

Navigate to an order confirmation or thank-you page while your test session is active.

  1. Clear the filter and type emjcd
  2. Confirm the following:
    • cid: Your account's Enterprise ID
    • type: Your account's Action Tracker ID
    • oid: Unique ID
    • amount: Subtotal of order
    • cjeventOrder: CJ's click-id, present in cje cookie
    • If returning Item-Level details, item, quantity, amt are present
    • Confirm additional vertical parameters are returning, if required

How to calculate commissionable subtotal

The conversion tag supports two discount parameters β€” one at the item level and one at the order level. Both are used when calculating the final commissionable subtotal. Taxes and shipping must never be included.

Step 1 β€” product subtotal (repeat for each item)
( productAmt Γ— productQty ) βˆ’ productDiscount = productSubtotal
↓ sum all product subtotals
Step 2 β€” final commissionable subtotal
totalProductsSubtotal βˆ’ orderLevelDiscount = finalCommissionableSubtotal
Item-level discount
productAmt$10.00
productQty2
productDiscount$5.00
orderLevelDiscount$0.00
($10.00 Γ— 2) βˆ’ $5.00 = $15.00
$15.00 βˆ’ $0.00
Final subtotal$15.00
Order-level discount only
productAmt$10.00
productQty2
productDiscount$0.00
orderLevelDiscount$5.00
($10.00 Γ— 2) βˆ’ $0.00 = $20.00
$20.00 βˆ’ $5.00
Final subtotal$15.00
SKU-based commissioning caveat: If commissions differ by SKU, item-level discounts must be split correctly across each product. Consolidating everything into the order-level discount will result in inaccurate per-SKU commission calculations.

Need help?

Submit a support ticket for account-specific support.

How to submit a ticket β†’