View difference between Paste ID: F99ayzaY and f5Ku2evB
SHOW: | | - or go back to the newest paste.
1-
//Push this dataLayer event when the user clicks on a product link on any page. Product links can appear in a grid, carousel, accordion, a featured product banner, etc.
1+
//Push this dataLayer event when the user clicks on a sub-category link. This typically happens on a product category page.
2
3
<script>
4
window.dataLayer = window.dataLayer || [];
5
window.dataLayer.push({
6-
 'event': 'product_click',
6+
 'event': 'sub_category_click',
7-
 'page_section': 'related_products',  //Section of the page where the event happened.
7+
 'page_section': 'sub-categories',  //Section of the page where the event happened.
8
 'sub_category': '<sub_category>',
9-
 'product_name': '<product_name>',
9+
10-
 'domain': '<domain>',
10+
11
 'topic': '<topic>',
12-
 'solution': '<solution>',
12+
13
 'ui_element_name': '<ui_element_name>',  //Name of the UI element from the Zeplin file.
14
 'ui_element_category': 'card'  //Category of the UI element.
15
 });
16-
 'product_family': '<product_family>',
16+