The Order tag captures order header information such as Registration ID, order ID, order subtotal, and shipping and handling. The Order tag should be sent on the receipt page confirming order completion.
- Order tag de-duplication
- Order tags are rejected from reporting if the Order ID parameter value was received in a prior Order tag within the last 800 days.
- Key Reports Populated
- All aggregate "Sales" and "Order" metrics outside of the Products Reporting; Demographics (Profile Segments)
- Digital Data Exchange Object Example
- digitalData = { page:{pageInfo:{pageID:'ORDERCONFIRMATION',onsiteSearchTerm:'', onsiteSearchResults:''},category:{primaryCategory:'CHECKOUT'},attributes: {exploreAttributes:'',extraFields:''}}, user:[{profile:[{profileInfo:{profileID:'REGISTRATION-ID',profileEmail:'EMAIL@EMAIL.COM', exploreAttributes:''},address:{city:'CITY',state_province:'STATE_PROVINCE', postalcode:'POSTALCODE',country:'COUNTRY'}}]}],
transaction:{transactionID:'123',total:{basePrice:'19.98',shipping:''}, profile:{profileInfo:{profileID:'REGISTRATION-ID'},address:{city:'CITY', state_province:'STATE_PROVINCE',postalcode:'POSTALCODE'}}, attributes:{exploreAttributes:'',extraFields:''},
item:new Array()}};
digitalData.transaction.item[0] = {productInfo:{productID:'productid123',productName:'productName123'}, quantity:'1',price:'9.99',category:{primaryCategory:''}, attributes:{exploreAttributes:'',extraFields:''}};
digitalData.transaction.item[1] = {productInfo:{productID:'productid456',productName:'productName456'}, quantity:'1',price:'9.99',category:{primaryCategory:''}, attributes:{exploreAttributes:'',extraFields:''}};
Tagging function
In order to use the Order tag, a call is made to cmCreateOrderTag(…) function.
Note: The following values are automatically removed from Acoustic Digital Analytics tag parameter data and cannot be collected or reported:
- Single quote (')
- Double quote (")
- Carriage return (hex 0D; regular expression \r)
- Line feed (hex 0A; regular expression \n)
- Comma (,): replaced with a space character prior to data loading and reporting
- Backslash (\): this is a standard JavaScript escape character. In order to collect and report a "\" character, two "\" must be specified in sequence ("\\"). The 2nd "\"is reported.
Tags
- Order ID (Required): Order ID for this order. This should match the Order ID sent in the Shop Action 9 tags for the line items in the order. Length: 64.
- Order Subtotal (Required): Subtotal for this order. This should not include shipping and handling or tax and should match the Order Subtotal sent with the related Shop Action 9 tags for this order. This value should be a decimal number and should not include a dollar sign ($).
The Order Subtotal should match the sum of Quantity * Unit Price for all Shop Action 9 tags (products) purchased in this order.
Length: 16.2
-
Order Shipping (Required): Shipping and handling for this order.
For Travel or Financial Services, this is typically "0," but might be used to track other relevant monetary data such as fees. Digital Analytics reporting references this as "Shipping."
Length: 16.2
- Registration ID (Required): Registration ID for the customer who placed the order. This should match the Registration ID sent in the Shop Action 9 tags for the line items in the order, as well as the Registration ID sent in the Registration Tag. Length: 256.
- Registrant City (Optional): City of the billing address for this registrant. Length: 256.
- Registrant State (Optional): State of the billing address for this registrant. Length: 256.
- Registrant Postal Code (Optional): Postal code of the billing address for this registrant. Length: 256.
- Attribute String (Optional): Up to 50 "-_-" delimited 'attribute' values accessible in Explore reporting. Length: 256 per value.
- Extra Fields (Optional): Up to 15 "-_-" delimited 'extrafield' values accessible through optional Standard Data Export. It is possible to copy the first 15 values from the first 15 Attribute String values by calling cmSetupOther ({"cmAutoCopy AttributesToExtra Fields":true}); on the page prior to tag function calls. Length: 100 per value.
Examples
Here is an example of the Order tag being called on the Order Thank You Page:
<head> <script type="text/javascript" src="//libs.coremetrics.com/eluminate.js"></script> <script type="text/javascript"> cmSetClientID("99999999",true,"data.coremetrics.com","thesite.com"); </script> </head> <body> ... <script type="text/javascript"> cmCreatePageviewTag("Order Thank You", "CART", null, null); // A separate call to cmCreateShopAction9Tag should be made for each cart entry cmCreateShopAction9Tag("12345", "Product X", "2","5000.42", "cust123", "order123", "10011.79", "CATXYZ"); cmCreateShopAction9Tag("67890", "Product Y", "1", "10.95", "cust123", "order123", "10011.79", "CATABC"); cmDisplayShops(); cmCreateOrderTag("order123", "10011.79", "5.95", "cust123", "Austin", "TX", 78727"); cmCreateRegistrationTag("cust123", "registrant@mail.com", "Austin", "TX", "78727", "US"); </script> </body>
Travel: 3 hotel rooms booked (2 hotels)
cmCreatePageviewTag("Booking: Thank You", "Booking"); cmCreateShopAction9Tag("12345", "Property ABC", "1", "49.99", "cust123", "booking123", "180.97", "Region:US:TX:Austin"); cmCreateShopAction9Tag("67890", "Property XYZ", "2", "65.49", "cust123", "booking123", "180.97", "Region:US:TX:Austin"); cmDisplayShops(); cmCreateOrderTag("booking123", "180.97", "0", "cust123", "Austin", "TX", 78727"); cmCreateRegistrationTag("cust123", "registrant@mail.com", "Austin", "TX", "78727", "US");
Financial Services: application completed
cmCreatePageviewTag("APPLICATION STEP 5(COMPLETION):Home Equity Loan", "consumer loans"); cmCreateShopAction9Tag("12345", "APPLICATION:Home Equity Loan", "1", "0", "cust123", "application123", "0", "consumer loans"); cmDisplayShops(); cmCreateOrderTag("application123", "0", "0", "cust123", "Austin", "TX", 78727"); cmCreateRegistrationTag("cust123", "registrant@mail.com", "Austin", "TX", "78727", "US");
Comments
0 comments
Article is closed for comments.