View difference between Paste ID: pYpYfTHK and KdunmYXG
SHOW: | | - or go back to the newest paste.
1-
// Push this dataLayer event when the user clicks on a magazine post link on any page.
1+
//Push this dataLayer event when the user clicks to change between the tabs on the magazine website.
2
3
<script>
4
window.dataLayer = window.dataLayer || [];
5
window.dataLayer.push({
6-
 'event': 'magazine_click',
6+
 'event': 'magazine_tab_change',
7-
 'page_section': 'featured articles',  // Section of the page where the event happened.
7+
 'tab_name': 'latest',  //Name of the tab that was selected or from which the link was clicked.
8-
 'tab_name': 'latest', // Name of the tab that was selected or from which the link was clicked.
8+
 'content_group': 'magazine',  //The content group that the content piece belongs to.
9-
 'title': 'methane and flare emissions. a fixable problem',  // The title of the content piece.
9+
 'position': '2',  //The element's position in the list, carousel, or card section.
10-
 'content_type': 'article',  // The type of content.
10+
 'ui_element_name': '<ui_element_name>',  //The name of the UI element from the Zeplin file.
11-
 'content_category': 'decarbonizing, new energy', // Category that the content piece belongs to. If multiple, separate names by a comma.
11+
 'ui_element_category': '<ui_element_category>'  //The category of the UI element.
12-
 'content_group': 'magazine',  // The content group that the content piece belongs to.
12+
13-
 'position': '2', // The element's position in the list, carousel, or card section.
13+