Content Solutions DocumentationPublished Date: 2018-01-24 Downloaded: April 27, 2024, 4:55 pm |
Content Solutions Documentation |
AB Test: Order Tracking
2018-01-24
To measure the impact of the available programs and content, ContentCast supports order confirmation tracking. This tracking is accomplished by making one or more image requests to the reporting platform from your Order Confirmation or Checkout page. By implementing the tracking code, you will be able to:
- Determine Sales Conversion Rates for products with vs without content.
- See how content can improve your sales.
Each request should represent a distinct product, its unit price, and quantity. Use multiple line item requests if you have several distinct product SKUs being purchased. If you have a single product being purchased with quantity greater than one, make one request and set the “quantity” parameter to the appropriate number.
- A valid Customer ID is required. Replace “SKEYHERE” with your unique Customer ID. This SKey value can be found in your product page code.
- Replace all variable values in CAPS with actual values.
- The service will return a clear gif and the event is entered into event log or database to export to event log.
- In the reporting database, we will group by sessionId and IP Address.
- We recommend passing the information to the reporting event using https.
Example – View Cart
<img src="https://ws.cs.1worldsync.com/log/t.gif?SKey=SKEYHERE&Et=viewcart&prodid=product123&mf=Test&prodtitle=Acme+Widget+-+SEO+Test&mfrpn=ACME32264&price=100.00&qty=3&orderId=9&curr=USD&total=1555.50&sessionId=DIJPqedm0HhPsDY-,CEPw3&ts=20170809134503" />
Example – Order Confirmation
<img src="https://ws.cs.1worldsync.com/log/t.gif?SKey=SKEYHERE&Et=ordercomplete&prodid=ACME32264&mf=Test&prodtitle=&pn=ACME32264&price=100.00&qty=6&orderId=9&curr=USD&total=1555.50&sessionId=DIJPqedm0HhPsDY-,CEPw3&ts=20170809135045" />
Tracking Multiple Ordered Items
If a user orders more than 1 product, you simply echo a unique image tag for each product.
Mfr |
Item |
Mfr Part # |
Qty |
---|---|---|---|
Acme |
Laptop 1 |
ACME123#ABA |
1 |
MegaMem |
1GB MEMORY SIMM |
M434413 |
2 |
Example HTML Output
<tr><td>Acme</td><td>Laptop 1</td><td>ACME123#ABA</td><td>1</td></tr> <img src="https://ws.cs.1worldsync.com/log/t.gif?SKey=SKEYHERE&Et=ordercomplete&prodid=ACME32264&mf=Acme&prodtitle=&pn=ACME32264&price=100.00&qty=1&orderId=9&curr=USD&total=1555.50&sessionId=DIJPqedm0HhPsDY-,CEPw3&ts=20170809135045" /> <tr><td>MegaMem</td><td>1GB MEMORY SIMM</td><td>M434413</td><td>2</td></tr> <img src="https://ws.cs.1worldsync.com/log/t.gif?SKey=SKEYHERE&Et=ordercomplete&prodid=M434413&mf=MegaMem&prodtitle=1GB+MEMORY+SIMM&pn=M434413&price=100.00&qty=2&orderId=9&curr=USD&total=1555.50&sessionId=DIJPqedm0HhPsDY-,CEPw3&ts=20170809135045" />
Query Parameters
Parameter |
Description |
---|---|
SKey |
CS Customer Subscriber ID as provided in the Product Page code. |
Et |
Specifies the type of events (viewcart, orderreview,ordercomplete) |
sessionId |
unique session id which doesnt contain any confidential customer info |
euid |
Your shopper or end-users customer id is suggested if you do not have a sessionId and need to the report data back to your internal customer database |
cdsId |
CNET DataSource product id. Required ONLY if missing Manufacturer and Manufacturer Part Number. |
mf |
Manufacturer Name of the product. Required along with “pn” if you are not able to pass cdsId. Must be URL encoded. |
pn |
Manufacturer Part Number. Required along with “mf” if you are not able to pass cdsId. Must be URL encoded. |
cpn |
Internal Product ID of product ordered. |
upcean | upcean = UPC or EAN of the product being purchased. |
price |
Unit Sell price of the product. |
qty |
Product order quantity. |
orderId |
The sales order ID |
Market |
two letter country code of the website. GB, US, CA, etc |
Locale | full locale: EN-GBR |
ts |
Timestamp used to avoid web-server caching. Supports multiple formats. |
total |
The total order cost for all of the items in the order, including taxes, shipping charges, coupons and discounts. |
subtotal |
The total cost for all of the items in the order including coupons and discounts but excluding taxes and shipping charges. |
curr | Currency of the price. USD, CAD, GBP. See http://www.xe.com/iso4217.php for list |
billing-city |
The city associated with the order’s billing address. |
billing-region |
state associated with the order’s billing address. |
billing-postal-code |
The zip code associated with the order’s billing address. |
billing-country-code |
The two-letter ISO 3166 country code associated with the order’s billing address. |
shipping-city |
The city associated with the order’s shipping address. |
shipping-region |
The U.S. state associated with the order’s shipping address. |
shipping-postal-code |
The five-digit U.S. zip code associated with the order’s shipping address. |
shipping-country-code |
The two-letter ISO 3166 country code associated with the order’s shipping address. |