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 user clicks on an event link on any page. |
| 2 | ||
| 3 | <script> | |
| 4 | window.dataLayer = window.dataLayer || []; | |
| 5 | window.dataLayer.push({
| |
| 6 | - | 'event': 'magazine_click', |
| 6 | + | 'event': 'event_click', |
| 7 | - | 'page_section': 'featured articles', // Section of the page where the event happened. |
| 7 | + | 'page_section': 'upcoming events', //Section of the page where the click happened. |
| 8 | - | 'tab_name': 'latest', // Name of the tab that was selected or from which the link was clicked. |
| 8 | + | 'title': 'slb careers fair 2022', //The title of the event. |
| 9 | - | 'title': 'methane and flare emissions. a fixable problem', // The title of the content piece. |
| 9 | + | 'content_type': 'event', //The type of content. |
| 10 | - | 'content_type': 'article', // The type of content. |
| 10 | + | 'content_group': 'event', //The content group that the content piece belongs to. |
| 11 | - | 'content_category': 'decarbonizing, new energy', // Category that the content piece belongs to. If multiple, separate names by a comma. |
| 11 | + | 'position': '1', //The element's position in the list, carousel, or card section. |
| 12 | - | 'content_group': 'magazine', // The content group that the content piece belongs to. |
| 12 | + | 'author_name': 'john doe, jane doe', //Name of the speaker(s). If multiple speakers, separate names by a comma. |
| 13 | - | 'position': '2', // The element's position in the list, carousel, or card section. |
| 13 | + | 'ui_element_name': 'events carousel', //The name of the UI element from the Zeplin file. |
| 14 | - | 'ui_element_name': '<ui_element_name>', // The name of the UI element from the Zeplin file. |
| 14 | + | 'ui_element_category': 'carousel' //The category of the UI element. |
| 15 | - | 'ui_element_category': '<ui_element_category>', // The category of the UI element. |
| 15 | + | |
| 16 | - | 'author_name': 'suzy nicholls, stephanie texas, lebron john', // Name of the author(s). If multiple authors, separate names by a comma. |
| 16 | + |