elbwalker docs
Search…
Order Success Page
What actions are typically being tracked on this page:
  • Order complete (also known as transaction purchase)
What properties are typically being tracked on this page:
  • Product Properties
    • name
    • id (also known as SKU)
    • category
    • price
    • quantity
    • currency
  • total_revenue
  • order_id
  • VAT_amount
  • shipping_costs
A typical walker implementation of an order success page could look like this:
1
<!-- Order Success Page -->
2
<div elb="order" elbaction="load:complete" elb-order="id:1234567">
3
<p class="total_revenue" elb-order="revenue:87">87</p>
4
<span class="currency" elb-order="currency:EUR">EUR</span>
5
<span class="vat_amount" elb-order="vat:13.89">13.89</span>
6
<span class="shipping_costs" elb-order="shipping_costs:4.90">4.90</span>
7
<p class="description">...</p>
8
</div>
Copied!
Once a page is loaded by a user all property values from the element as well as all child elements of the entity-container and their parents will be collected. In the background a dataLayer push will be generated with the following structure:
1
elbLayer.push(
2
'order complete',
3
{
4
id: 1234567,
5
revenue: 87,
6
currency: 'EUR',
7
vat: 13.89,
8
shipping_costs: 4.9,
9
},
10
'load',
11
);
Copied!
We will add a lot more real world examples here in the upcoming weeks. If you want to know how to measure certain events or website elements with our walker please don't hesitate to reach out to us via [email protected].
Copy link