elbwalker docs
Search…
Category Page
What actions are typically being tracked on this page:
  • Product impression
  • Product click
  • Product add
What properties are typically being tracked on this page:
  • Products
    • name
    • id (also known as SKU)
  • Category name
  • Number of products found
A typical walker implementation of a product's category page could look like this:
1
<!-- Category Page -->
2
<div class="listing" elb="product" elbaction="visible:impression">
3
<div class="sku" elb-product="id:42">SKU: 42</div>
4
<a href="#" elbaction="click">
5
<p class="name" elb-product="name:Everyday Ruck Snack">
6
Everyday Ruck Snack
7
</p>
8
</a>
9
<div class="price" elb-product="price:220">€ 220</div>
10
<p class="description">...</p>
11
<button elbaction="click:add">Add to cart</button>
12
</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. By clicking the button an elbLayer push will be generated with the following structure:
1
elbLayer.push(
2
'product add',
3
{
4
id: 42,
5
name: 'Everyday Ruck Snack',
6
price: 220
7
},
8
'visible',
9
);
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