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 on a magazine post page when the user clicks on a platform icon to share content. |
| 2 | ||
| 3 | <script> | |
| 4 | window.dataLayer = window.dataLayer || []; | |
| 5 | window.dataLayer.push({
| |
| 6 | - | 'event': 'magazine_click', |
| 6 | + | 'event': 'content_share', |
| 7 | - | 'page_section': 'featured articles', // Section of the page where the event happened. |
| 7 | + | 'page_section': 'enjoyed this article?', //Section of the page where the event happened. |
| 8 | - | 'tab_name': 'latest', // Name of the tab that was selected or from which the link was clicked. |
| 8 | + | 'title': 'methane and flare emissions. a fixable problem', //The title of the content piece. |
| 9 | - | 'title': 'methane and flare emissions. a fixable problem', // The title of the content piece. |
| 9 | + | 'content_type': 'article', //The type of content. |
| 10 | - | '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_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 | - | '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 | + | |
| 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> |