Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Push this dataLayer event when the user clicks on a magazine post link on any page.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'magazine_click',
- 'page_section': 'featured articles', // Section of the page where the event happened.
- 'tab_name': 'latest', // Name of the tab that was selected or from which the link was clicked.
- 'title': 'methane and flare emissions. a fixable problem', // The title of the content piece.
- 'content_type': 'article', // The type of content.
- 'content_category': 'decarbonizing, new energy', // Category that the content piece belongs to. If multiple, separate names by a comma.
- 'content_group': 'magazine', // The content group that the content piece belongs to.
- 'position': '2', // The element's position in the list, carousel, or card section.
- 'ui_element_name': '<ui_element_name>', // The name of the UI element from the Zeplin file.
- 'ui_element_category': '<ui_element_category>', // The category of the UI element.
- 'author_name': 'suzy nicholls, stephanie texas, lebron john', // Name of the author(s). If multiple authors, separate names by a comma.
- 'time_to_consume_content_range': '5-7' // Estimated consumption time. Grouped by specific ranges.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment