Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when the user clicks to save a content piece on a magazine post page.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'content_save',
- 'page_section': 'enjoyed this article?', //Section of the page where the event happened.
- '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.
- '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