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 when the user clicks on a "follow this topic" button. Usually can be found on a magazine category page. |
| 2 | ||
| 3 | <script> | |
| 4 | window.dataLayer = window.dataLayer || []; | |
| 5 | window.dataLayer.push({
| |
| 6 | - | 'event': 'magazine_click', |
| 6 | + | 'event': 'magazine_follow_this_topic', |
| 7 | - | 'page_section': 'featured articles', // Section of the page where the event happened. |
| 7 | + | 'content_group': 'magazine', //The content group that the content piece belongs to. |
| 8 | - | 'tab_name': 'latest', // Name of the tab that was selected or from which the link was clicked. |
| 8 | + | 'content_category': 'decarbonizing, new energy' //Category that the content piece belongs to. If multiple, separate by a comma. |
| 9 | - | 'title': 'methane and flare emissions. a fixable problem', // The title of the content piece. |
| 9 | + | |
| 10 | - | 'content_type': 'article', // The type of content. |
| 10 | + |