Implementation

☑️

If your website uses a CSP, add the following domains to your allowlist:

Allowlist Domains
mczbf.comsjwoe.comcj.dotomi.comemjcd.comidsync.rlcdn.com.cj.com

Site Page Tag

This section covers the Site Page Tag implementation for all pages on your site, excluding transaction and purchase confirmation pages. It includes code examples and a reference for the available parameters.

📋Before You Implement
  • Place the cj.sitePage and cj.order object before the CJ script on the respective pages. Both scripts should be placed as high on the page as possible,
  • Replace all placeholder values with your actual data. Brackets are for illustration only and should not appear in your final code.
  • Code examples are provided for reference only and may not be compatible with all shopping carts or platforms. CJ does not guarantee their accuracy for your specific setup.

Site Page Tag Parameters

Click any row to see type, format, and value examples.
Parameter
Description
Required
enterpriseId
Your CJ Enterprise ID. A static value provided by CJ and unique to your account.
Required
pageType
The type of page where the tag is deployed. Drives page-level segmentation and cross-channel journey tracking.
Recommended
Type: PageType
Allowed Values
homepage
product
category
cart
confirmation
other
Note: See the PageType reference table for the full list of accepted values. Mismatched values will skew funnel attribution reporting.
referringChannel
The marketing channel that referred the user before they arrived at your site. Only populate this on the landing page of the session.
Recommended
Type: String
Allowed Values
Affiliate
Display
Social
Search
Email
Direct_Navigation
Note: This field only needs to be populated on the page where the user first arrives. For Cross Channel Journey tracking, use the exact values shown above
cartSubtotal
The subtotal of the shopping cart. Only populate this parameter on cart pages.
Optional

Accepted values for pageType

Vertical:
Showing 16 of 16 values

All values are supported across verticals. The list below reflects the most common usage per vertical.

Page TypeAdvertiser VerticalNotes
homepageRetail, Network Services, Finance, TravelThe main landing page and homepage of your site.
departmentRetail, Network Services, FinanceDepartment-level pages sitting above category pages in the site hierarchy.
categoryRetail, Network Services, FinanceCategory listing pages showing a group of products or services.
subCategoryRetail, Network Services, Finance
productDetailRetail, Network Services, FinanceIndividual product detail pages.
cartRetail, Network Services, Finance, TravelPass all items in the cart, if possible. Follow the format outlined in the Site Tag code example
searchResultsRetail, Network Services, Finance, TravelSearch results pages.
storeLocatorRetail, Network Services
accountSignupRetail, Network Services, Finance, TravelAccount registration and signup pages.
accountCenterRetail, Network Services, Finance, TravelAny pages within the account center after the user has logged in
conversionConfirmationRetail, Network Services, Finance, TravelThe conversion confirmation page.
informationTravel
propertyResultsTravel
propertyDetailTravel
applicationStartFinanceThe beginning of an application flow.
branchLocatorFinancePages that help users find a physical branch location.

Conversion Page Tag

Place this code only on order confirmation, thank you, or conversion complete pages:

The cj.orders data object should be used for any advertiser that needs to fire multiple actions for the same transaction.

The cj.orders accepts an array of orders than can include different enterpriseId and actionTrackerId.

Conversion Tag Parameters

Click any row to see type, format, and value examples.
Parameter
Description
Required
enterpriseId
Your CJ Enterprise ID. A static value provided by CJ and unique to your account.
Required
actionTrackerId
A static value provided by CJ. Each account may have multiple actions, each referenced by a different actionTrackerId.
Required
orderId
A unique identifier for the order, such as an order number or invoice ID. Used to reconcile orders between your system and CJ.
Required
Type: IDFormat: Alphanumeric, dashes, and underscores only
Examples
ORDER-00123
INV_987654
Note: Truncated after 96 characters. Do not include PII such as email addresses. Spaces and special characters are not permitted.
cjeventOrder
The CJ Event ID from the cje cookie stored on the advertiser's site. Used to attribute the order to the correct CJ event.
Required
Type: String
Note: Read this value directly from the cje cookie. If the cookie is not present, do not pass an empty string — omit the parameter entirely.
amount
The order total in the currency specified by the currency parameter. Do not include shipping or tax.
Recommended
Type: DecimalFormat: Numeric, max 2 decimal places
Examples
89.99
124.50
Note: Do not include shipping or tax. If a currency other than your functional currency is specified, CJ converts the amount automatically using current exchange rates.
currency
Three-letter currency code identifying the currency of the order amount. Defaults to the advertiser's functional currency if omitted.
Recommended
Type: StringFormat: ISO 4217 three-letter currency code
Examples
USD
GBP
EUR
Note: If a currency value is not returned, the transaction will default to your account's functional currency.
discount
Discount amount applied to the whole order.
Recommended
Type: DecimalFormat: Numeric, max 2 decimal places
Examples
10
5.5
Note: Total discount applied to the order as a whole. Use this for cart-level promotions such as a percentage off the entire order or a flat order discount. For item-level discounts, use the discount field within each item in the items array.
coupon
The coupon or voucher code used in the transaction.
Recommended
Type: String
Examples
SAVE20
WELCOME10
Note: Leave empty or omit if no coupon was used.

Item-Level Parameters

Click any row to see type, format, and value examples.
Parameter
Description
Required
itemId
The identifier for the individual item purchased, such as a SKU or product ID.
Required
Type: StringFormat: Alphanumeric, dashes, and underscores only
Examples
SKU-001
PROD_4521
Note: Maximum 100 items per order. SKU values must be 100 characters or fewer. Spaces and special characters are not permitted.
unitPrice
The price of a single unit of the item. Do not multiply by quantity.
Required
Type: DecimalFormat: Numeric only, no currency symbols or commas
Examples
13.49
3.00
Note: Pass the price of one item regardless of quantity. For example, pass 3.00 for two items at 3.00 each — not 6.00. Maximum 100 items per order.
quantity
The number of units purchased for this item. Multiplied by unitPrice to calculate the item total.
Required
Type: IntegerFormat: Whole numbers only
Examples
1
3
Note: Decimal quantities are not supported. For example, quantity=1.0 is read as quantity=10. Maximum 100 items per order.
discount
Discount applied to this specific item in the transaction. Use this for product-level promotions such as a sale price on an individual SKU. For order-wide discounts, use the top-level discount parameter.
Optional
Type: DecimalFormat: Numeric, max 2 decimal places
Examples
5.00
Note: The discount is divided evenly across all units. For example, a 5.00 discount on 2 units at 10.00 each reduces each unit to 7.50, giving a subtotal of 15.00.