View difference between Paste ID: KdunmYXG and YrTYNqgN
SHOW: | | - or go back to the newest paste.
1-
// Push this dataLayer event when the user clicks on a resource link on any page. These links usually appear in "related resources" or "case studies" sections across many pages. They also appear on the resources landing page.
1+
// Push this dataLayer event when the user clicks on a magazine post link on any page.
2
3
<script>
4
window.dataLayer = window.dataLayer || [];
5
window.dataLayer.push({
6-
 'event': 'resource_click',
6+
 'event': 'magazine_click',
7-
 'page_section': 'related resources',  // Section of the page where the event happened. This is usually the title of the hero banner or heading for the part of the page. (H1 or H2 tag)
7+
 'page_section': 'featured articles',  // Section of the page where the event happened.
8-
 'title': 'operator expands operating envelope using improved packers',  // The title of the content piece.
8+
 'tab_name': 'latest', // Name of the tab that was selected or from which the link was clicked.
9-
 'content_type': 'case study',  // The type of content.
9+
 'title': 'methane and flare emissions. a fixable problem',  // The title of the content piece.
10-
 'content_group': 'resource',  // The content group that the content piece belongs to.
10+
 'content_type': 'article',  // The type of content.
11
 'content_category': 'decarbonizing, new energy', // Category that the content piece belongs to. If multiple, separate names by a comma.
12-
 'ui_element_name': 'case studies carousel', // The name of the UI element from the Zeplin file.
12+
 'content_group': 'magazine',  // The content group that the content piece belongs to.
13-
 'ui_element_category': 'carousel'  // The category of the UI element.
13+
14
 'ui_element_name': '<ui_element_name>', // The name of the UI element from the Zeplin file.
15
 'ui_element_category': '<ui_element_category>',  // The category of the UI element.
16
 'author_name': 'suzy nicholls, stephanie texas, lebron john', // Name of the author(s). If multiple authors, separate names by a comma.
17
 'time_to_consume_content_range': '5-7' // Estimated consumption time. Grouped by specific ranges.
18
 });
19
</script>