View difference between Paste ID: Q9YtCDQR and 49eTan27
SHOW: | | - or go back to the newest paste.
1-
//Push this dataLayer event on a magazine post page when the user clicks on a platform icon to share content.
1+
//Push this dataLayer event when the user clicks to save a content piece on a magazine post page.
2
3
<script>
4
window.dataLayer = window.dataLayer || [];
5
window.dataLayer.push({
6-
 'event': 'content_share',
6+
 'event': 'content_save',
7
 'page_section': 'enjoyed this article?',  //Section of the page where the event happened.
8
 'title': 'methane and flare emissions. a fixable problem',  //The title of the content piece.
9
 'content_type': 'article',  //The type of content.
10
 'content_category': 'decarbonizing, new energy',  //Category that the content piece belongs to. If multiple, separate names by a comma.
11
 'content_group': 'magazine',  //The content group that the content piece belongs to.
12
 'ui_element_name': '<ui_element_name>', // The name of the UI element from the Zeplin file.
13
 'ui_element_category': '<ui_element_category>',  // The category of the UI element.
14
 'author_name': 'suzy nicholls, stephanie texas, lebron john', // Name of the author(s). If multiple authors, separate names by a comma.
15
 'time_to_consume_content_range': '5-7' // Estimated consumption time. Grouped by specific ranges.
16
 });
17
</script>