Commission Junction Sync
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.
Product Type: Affiliate
Integration Type: Starter Kit & ID Sync
Capabilities
- Captures
cjevent
from URL parameters for attribution tracking. - Stores
cjevent
in first-party storage to persist affiliate click information. - Automatically refreshes stored values when the
cjevent
parameter is encountered again. - Appends identifiers to server-side events to support affiliate commission tracking.
Sync Details
-
IDs:
cjevent
– A unique click identifier passed via URL by CJ Affiliate to attribute user actions and conversions to specific affiliates.
-
Description:
- The sync captures the
cjevent
identifier from URL parameters. - Each value is stored in first-party storage for a configured duration, defaulting to 365 days unless otherwise set in the UI.
- Values are refreshed whenever a new
cjevent
is detected in the URL. - The identifiers are added to server-side event payloads for affiliate attribution.
- The sync captures the
-
Server-side Event Payload:
Upon completion of all vendor's sync, the server-side events will incorporate all resolved identifiers as described above. The following object will be appended to thecontext.providers
property within the event's JSON payload.{ "commissionJunction": { "cjevent": "URL parameter value from cjevent" } }
-
Cookie Name:
- Cookie:
_meta_commissionJunction_cjevent
- IndexedDB:
[your storage prefix]_commissionJunction_cjevent
- For a general guide on ID Sync validation, see here.
- Cookie:
Sync Setup Guide
1. Add a Commission Junction Sync in MetaRouter
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 field
- Cookie Lifetime (in days) – Defines how long the stored
cjevent
value remains in storage unless renewed. Example:30
- Cookie Lifetime (in days) – Defines how long the stored
- Scroll down and click the Save and Build File button.
- Deploy your AJS file to propagate changes to your web property.
Updated 16 days ago
If applicable, proceed with setting up your Commission Junction Starter Kit.