This article describes how to set up the CJ Affiliate: Conversion Tag tag in your Tealium iQ Tag Management account.

In this article:

Tag Tips

  • This tag requires the E-Commerce Extension ( _corder, _cprod, _cquan, _cprice).
  • Use mapping to override E-Commerce Extension values for ITEM, AMT, QTY, DCNT.
  • Map a variable to DISCOUNT for order-level discount and an array to DCNT for product-level discounts.
  • Currency will default to USD if no currency is set on the page.
  • Map the event ID variable to CJEVENT to register the event as an affiliate referral. If you're using a template as recent as October 2018, the tag will try to use the cjevent query parameter by default, although you can still use a mapping to override this.

Tag Configuration

First, go to the tag marketplace and add the CJ Affiliate: Conversion Tag tag (Learn more about how to add a tag).

After adding the tag, configure the following settings:

  • Client ID
    • Advertiser Account Number
  • Sale Tag Type
    • Standard: CID, OID, TYPE and CURRENCY are sent.
    • Advanced: Sends additional values ITEM, AMT, QTY, DCNT.
  • Action ID
    • Populates the TYPE querystring parameter.
    • Leave blank to use the e-commerce extension _ctype value.
  • Container Tag ID
    • Optional.
    • Leave blank to use image tag.
    • When this value is set, the iframe (container) tag is used instead of IMG tag
  • CJ Referral Period
    • Optional.
    • Set the CJEVENT cookie duration.
    • Specify in days using a number between 1 and 120, or leave blank to use the default behavior of a session based duration.
    • Must use a tag template as recent as October 2018 for this config option to take effect.

Data Mappings

Mapping is the process of sending data from a data layer variable to the corresponding destination variable of the vendor tag. For instructions on how to map a variable to a tag destination, see data mappings.

The available categories are:

Standard

Destination Name Description
cid
  • Client ID
  • Map to this variable to dynamically configure the Client ID.
aid
  • Action ID
  • Map to this variable to dynamically configure the Action ID, which is the TYPE parameter of the query string.
containerid
  • Container Tag ID
  • Map to this variable to dynamically configure the Container Tag ID.
name
  • Name
  • Map to this variable to dynamically configure the Name, which uniquely identifies your conversion tag.
CJEVENT
  • CJ Event
referralperiod
  • Referral period

E-Commerce

E-Commerce

Variable Description
OID
  • Order ID
  • Map to this variable to the ID of the order.
AMOUNT
  • Order total.
  • Map to this variable to override the subtotal applicable to the order.
CURRENCY
  • Order currency.
  • Map to this variable to override the currency applicable to the order.
  • Defaults to USD.
DISCOUNT
  • Order Discount.
  • Map to this variable to override the discounts applicable to the order.
COUPON
    • Order Coupon.
  •  
  • Map to this variable to the coupon name applicable to the order.
ITEM
  • Array
  • Product item
  • Map to this variable to override the product IDs.
AMT
  • Array
  • Product price.
  • Map to this variable to override the product prices.
QTY
  • Array
  • Product quantity.
  • Map to this variable to override the product quantities.
DCNT
  • Array
  • Product Discount.
  • Map to this variable to the discount applicable to the order.

Advanced

These variables are not to be used unless instructed by your assigned CJ Client Integration Engineer

Destination Name Description
CHANNEL
  • Channel
  • Map to this variable to the channel attributed to the last click.
CHANNEL_TS
  • Channel TS
  • Map to this variable to the date/time stamp attributed to the last click.

Vendor Documentation

Public