View difference between Paste ID: uX1Mn8NM and MCUHHNKd
SHOW: | | - or go back to the newest paste.
1-
//Push this dataLayer event when the user clicks/swipes to see more items in a carousel element.
1+
//Push this dataLayer event when the user clicks on a "people stories" link.
2
3
<script>
4
window.dataLayer = window.dataLayer || [];
5
window.dataLayer.push({
6-
 'event': 'carousel_change',
6+
 'event': 'people_stories_click',
7-
 'carousel_action': 'arrow',  //If the user clicked on an arrow or dot, or swiped.
7+
 'content_group': 'people stories',  //Content group that the content piece belongs to.
8-
 'content_group': 'magazine',  //Content group that the content piece belongs to.
8+
 'page_section': 'stories from our people',  //Section of the page where the event happened.
9-
 'page_section': 'top nav 2',  //Section of the page where the event happened.
9+
 'title': '<title>',  //Title of the content piece.
10
 'position': '4',
11-
 'ui_element_category': '<ui_element_category>'  //The category of the UI element.
11+
12
 'ui_element_category': 'carousel'  //The category of the UI element.
13
 });
14
</script>