
Learn how to integrate CJ Affiliates with AnyTrack so you can track your conversions in Google Analytics, Facebook Conversion API and you other tools.
About CJ Affiliates
Since day one, CJ focuses on creating innovative tech that meets merchant needs. Founded in Santa Barbara, California in 1998, CJ (formerly Commission Junction), continues to lead the industry as the largest, most trusted name in global performance marketing, specializing in affiliate marketing technology and services.
In this tutorial you will learn how to get started with AnyTrack.
-
The AnyTrack TAG setup
-
The Integration with Google Analytics and the Facebook Conversion API.
-
The Integrations with Affiliate Networks such as CJ Affiliates and Impact.
At the end of the tutorial you'll be able to see and use your affiliate conversions in Google Analytics and in the Facebook Pixel.
How does the CJ AnyTrack integration work
When you've added your AnyTrack Tag to your site, and connected your CJ Affiliates API to your AnyTrack account, several things will happen simultaneously:
- AnyTrack will AutoTrack and AutoTag your CJ affiliate links
- AnyTrack will fire
OutboundClick
events to your ad pixels and Analytics - AnyTrack will start fetching conversions from the CJ Affiliates API
- AnyTrack will send
Lead
andPurchase
events to your ad pixels and Analytics.
CJ Affiliates step by step guide:
- Get a developer account in CJ (click here)
- Create a Personal Token
- In AnyTrack, CJ Affiliates
- Paste your Personal token and publisher ID
- Save
When you'll save your settings, AnyTrack will connect to the CJ API and validate the connection.
CJ Affiliates link tracking methods
As explained in the affiliate link tracking section AnyTrack Tag will AutoTag affiliate links according to two criteria
- If you've published your links directly on your site
- According to a link attribute called
data-tracking-group="cj"
- AutoScan - The crawler will scan your links and tag them accordingly.
CJ Affiliates Conversions
Anytrack will automatically fetch conversion data through the API integration and display the results in your campaign reports, and across the dashboard.
Conversion types
CJ Affiliates has two conversion types in their dataset and they are automatically translated into standard events
- Sales -> Purchase
- Leads -> Lead
Conversion payload example:
{ "websiteName": "*********", "actionType": "item_sale", "actionTrackerName": "********* Purchase", "pubCommissionAmountUsd": "14.8", "commissionId": "2990802105", "actionStatus": "new", "shopperId": "Zojr5qP******r0SUJ8n4GiF2h4tOU", //anytrack clickid "postingDate": "2022-05-10T03:30:19Z", "items": [ { "perItemSaleAmountPubCurrency": "148", "quantity": 1, "totalCommissionPubCurrency": "14.8" } ], "advertiserName": "******", "eventDate": "2022-05-10T02:34:48Z" }
FAQ and Troubleshooting
AnyTrack provides a conversion log where you can visualize your conversion data in real time. The log shows errors, and success which allows you to see why conversions aren't trackable.
You can access the CJ Affiliates conversion log here.
Missing click_id
:
This is the most common error with affiliate networks. Essentially, it means that for some reasons AnyTrack couldn't pass the click_id
to your offer link.
Here are a few pointers that might help you figure out these errors:
- Are you sending traffic from websites that are not connected to AnyTrack?
- Ae you sending traffic directly to offer links via your social channels or email campaigns?
- Are some conversions the result of clicks that happened before you started tracking with AnyTrack
Disconnected API Token
If you erase your token from the CJ dashboard, anytrack won't be able to fetch your conversions.
If for some reasons CJ API returns too many errors or times out, the API Fetching will pause and you'll have to reconnect your account.
Conversions are fetched every 60 minutes.
The CJ sid
parameter
CJ provides a single query parameter to pass the click_id
parameter. This is the parameter we use by default. If you are currently using this parameter for other tracking methods, AnyTrack will Automatically append the AnyTrack click_id
after your parameter according to the following syntax:
sid=(yourParam + AT + clickId)
In practice it will look like:
sid=Top-BannerATZojr5qP******r0SUJ8n4GiF2h4tOU
If you need to parse this parameter for your own reports you can get the data through our webhook end point.
Comments
0 comments
Please sign in to leave a comment.