Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Push this dataLayer event when the user clicks on a resource link on any page. These links usually appear in "related resources" or "case studies" sections across many pages. They also appear on the resources landing page.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'resource_click',
- 'page_section': 'related resources', // Section of the page where the event happened. This is usually the title of the hero banner or heading for the part of the page. (H1 or H2 tag)
- 'title': 'operator expands operating envelope using improved packers', // The title of the content piece.
- 'content_type': 'case study', // The type of content.
- 'content_group': 'resource', // 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': 'case studies carousel', // The name of the UI element from the Zeplin file.
- 'ui_element_category': 'carousel' // The category of the UI element.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment