Overview
The following are the recommended dataLayer events that should fire when a user clicks on the category filter and then click on the filter value to limit the search result for a particular search term search.
For example, a user searched for Dulux and then clicked on the category filter and selected roof. This limits the search result to Dulux products related to “roof work” only.
Code
Event 1
Trigger
When a user click on the category filter to expand it (to see all the category names)
dataLayer
{
event: "datav3-event-expand",
datav3-module-name: "searchRefinement",
datav3-action-text: "Category",
datav3-action-position: 1,
datav3-action-type: "expand"
}
GA Universal Analytics Event
ec: searchRefinement ea: expand el: Category
Event 2
Trigger
When a user click on a particular category name
dataLayer
{
event: "datav3-event-select",
datav3-module-name: "searchRefinement",
datav3-module-identifier: "Category",
datav3-action-text: "Bathroom",
datav3-action-position: 5,
datav3-action-type: "select"
}
GA Universal Analytics Event
ec: searchRefinement ea: select el: Bathroom