Implementation
mczbf.comsjwoe.comcj.dotomi.comemjcd.comidsync.rlcdn.com.cj.comSite 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.
- 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.
- Integration IDs: All advertiser implementations require unique integration IDs. Request your IDs from CJ’s Technical Support team when you are ready to begin your setup.
- Tracking Continuity: Maintain your existing tracking until your new integration is fully implemented, tested, and confirmed as active. This ensures uninterrupted attribution and reporting.
<script type='text/javascript'>
if (!window.cj) window.cj = {};
cj.sitePage = {
enterpriseId: {{enterpriseId}},
pageType: '{pageType}',
referringChannel: '{referringChannel}',
cartSubtotal: {cartSubtotal}
};
</script>
<script type='text/javascript'>
(function(a,b,c,d){
a='https://www.mczbf.com/tags/{{tagId}}/tag.js';
b=document;c='script';d=b.createElement(c);d.src=a;
d.type='text/java'+c;d.async=true;
d.id='cjapitag';
a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a)
})();
</script>Site Page Tag Parameters
enterpriseIdpageTypereferringChannelcartSubtotalAccepted values for pageType
pageTypeAll values are supported across verticals. The list below reflects the most common usage per vertical.
| Page Type | Advertiser Vertical | Notes |
|---|---|---|
homepage | Retail, Network Services, Finance, Travel | The main landing page and homepage of your site. |
department | Retail, Network Services, Finance | Department-level pages sitting above category pages in the site hierarchy. |
category | Retail, Network Services, Finance | Category listing pages showing a group of products or services. |
subCategory | Retail, Network Services, Finance | |
productDetail | Retail, Network Services, Finance | Individual product detail pages. |
cart | Retail, Network Services, Finance, Travel | Pass all items in the cart, if possible. Follow the format outlined in the Site Tag code example |
searchResults | Retail, Network Services, Finance, Travel | Search results pages. |
storeLocator | Retail, Network Services | |
accountSignup | Retail, Network Services, Finance, Travel | Account registration and signup pages. |
accountCenter | Retail, Network Services, Finance, Travel | Any pages within the account center after the user has logged in |
conversionConfirmation | Retail, Network Services, Finance, Travel | The conversion confirmation page. |
information | Travel | |
propertyResults | Travel | |
propertyDetail | Travel | |
applicationStart | Finance | The beginning of an application flow. |
branchLocator | Finance | Pages that help users find a physical branch location. |
Conversion Page Tag
Place this code only on order confirmation, thank you, or conversion complete pages:
Requirement for Conversion Page TagThe Universal Tag needs to fire on all transactions, affiliate referred and non-affiliate referred. Providing details for all transactions allows CJ to leverage our attribution solution across devices and provide insights reporting such as cross-channel journey and incrementality. Not meeting this requirement means forfeiting those solutions.
<script type="text/javascript">
if (!window.cj) window.cj = {};
cj.order = {
enterpriseId: {{enterpriseId}},
actionTrackerId: {{actionTrackerId}},
orderId: {oid},
cjeventOrder: {cjeCookie},
pageType: 'conversionConfirmation',
currency: {currency},
amount: {amount},
discount: {cartDiscount},
coupon: {coupon},
items: [
{ unitPrice: 29.99, itemId: 'sku1', quantity: 2, discount: 5.00},
{ unitPrice: 15.50, itemId: 'sku2', quantity: 1, discount: 0}
]
};
</script>
<script type='text/javascript'>
(function(a,b,c,d){
a='https://www.mczbf.com/tags/{{tagId}}/tag.js';
b=document;c='script';d=b.createElement(c);d.src=a;
d.type='text/java'+c;d.async=true;
d.id='cjapitag';
a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a)
})();
</script>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
enterpriseIdactionTrackerIdorderIdcjeventOrderamountcurrencydiscountcouponItem-Level Parameters
itemIdunitPricequantitydiscountUpdated 22 days ago

