Commission Junction
What Is Commission Junction?
Commission Junction provides a platform that connects advertisers with a network of publishers, making it easier for both parties to find suitable partnerships. Publishers promote the advertisers’ products through various channels such as websites, blogs, social media, email marketing, etc. When a user clicks on an affiliate link and completes a desired action, the publisher earns a commission.
What are the benefits of integrating MetaRouter with Commission Junction?
MetaRouter’s integration provides a straightforward way to send customer data to Commission Junction. Collect data on websites, control your data with event mappings customized to your business's needs, and send it to Commission Junction without the use of Commission Junction’s tag.
Key Features:
- Enables Commission Junction tag removal.
- No effect on website load latency.
- Ensures event data is streaming into Commission Junction for accurate commission reporting.
Getting Started - From Your Commission Junction Account
- Grab an access token
- Log in to the developer portal and create a new access token here: https://developers.cj.com/account/personal-access-tokens
- Please make sure to store it somewhere safely as once they navigate away from this page the token will now be hidden for security purposes.
- Log in to the developer portal and create a new access token here: https://developers.cj.com/account/personal-access-tokens

- Please contact your Commission Junction support team to get the following:
- Enterprise ID
- Action Tracker ID
- Important note on the action tracker: Please communicate to your Commission Junction support team about the kinds of parameters you will be sending them. If you are sending parameters such as SKU, qtyx, and amtx, then you will need an Advanced Integration action tracker ID. If you are sending basic information about a transaction and not tracking item-level data about a purchase or lead, then you will ask for a Simple Integration action tracker ID.
- The default playbook uses Simple Integration actions. If you are using Advanced Integration actions, item-level parameters must be included in your events. Please reach out to your Commission Junction rep for a full list of supported parameters.
Getting Started - From Your MetaRouter Account
Adding a Commission Junction integration.
From the integration library, add a Commission Junction integration. Then, fill out the Connection Parameters:
Connection Parameter | Description |
---|---|
ACCESS_TOKEN | Token obtained from the Commission Junction developer portal. |
ACTION_TRACKER_ID | This will be provided to you by your Commission Junction support team. |
ENTERPRISE_ID | This will be provided to you by your Commission Junction support team. |
ENDPOINT | This will be graphql . |
Adding a Commission Junction Sync
To gather the cjevent
value, you must add a Commission Junction sync.
- From the Pipelines page, find the pipeline associated with the web property you’d like to add a sync to. Hover over the three-dot dropdown and select “Build AJS File.”
- In the Identity Syncs section, select the Commission Junction sync.
- Fill out the following fields:
- Cookie Lifetime (in days) - 390 days is recommended
- Scroll down and click the Save and Build File button.
- Deploy your AJS file to propagate changes to your web property.
Event Mappings
MetaRouter provides all of the event mappings that Commission Junction integrations typically require. You may add custom events, parameters or mappings following Commission Junction’s API documentation.
Global
Global mappings will be applied to all events. If your parameter names do not match the Expected Inputs provided, you will need to overwrite the Inputs provided with your own.
Output Key | Description | Expected Input |
---|---|---|
enterpriseID Required | Type: String | Enterprise_ID |
orderID | Type: String CJ prohibits the submission of personally identifiable information—such as a full or partial email address—in the OID value. Note: Include only alphanumeric characters within the OID field to avoid errors. You must URL-encode any special characters or extra spaces used in this field. | properties.order_id |
actionTrackerID | Type: String | NA - Expression |
Event Specific
The events below are required for accurate reporting within Commission Junction.
order_completed
Output Key | Description | Expected Input |
---|---|---|
cjEvent Required | Type: String | cjevent |
amount | Type: Number Simple Sale Actions | properties.revenue |
discount | Type: Number | properties.discount |
coupon | Type: String Field length: 256 characters | properties.coupon |
currency | Type: String | properties.currency |
eventTime | Type: String | timestamp |
verticalParameters.orderSubtotal | Type: Number | properties.revenue |
verticalParameters.taxAmount | Type: Number | properties.tax |
verticalParameters.itemId | Type: String | N/A - Expression |
order_updated
Output Key | Description | Expected Input |
---|---|---|
amount Required, if using Simple Integration Action Tracker | Type: Number Simple Sale Actions | properties.revenue |
discount | Type: Number | properties.discount |
coupon | Type: String Field length: 256 characters | properties.coupon |
currency | Type: String | properties.currency |
updateTime | Type: String | timestamp |
verticalParameters.orderSubtotal | Type: Number | properties.revenue |
verticalParameters.taxAmount | Type: Number | properties.tax |
verticalParameters.itemId | Type: String | N/A - Expression |
order_canceled
Output Key | Description | Expected Input |
---|---|---|
updateTime Required | Type: String | originalTimestamp |
Required Identifiers
These identifiers must be mapped to Commission Junction in order for successful user matching to occur.
Attribute | Example | Sync Injector Required? |
---|---|---|
cjevent Required |
| Yes |
Additional Commission Junction Documentation
Updated 18 days ago