Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when the user clicks to download a file.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'file_download',
- 'page_section': 'featured product', //Section of the page where the event happened.
- 'title': 'title', //Title of the content piece.
- 'format': 'pdf',
- 'content_type': 'product sheet', //Type of content.
- 'file_url': '<file_url>',
- 'content_group': 'resource', //Content group that the content piece belongs to.
- 'strategic_field': '<strategic_field>',
- 'solution': '<solution>',
- 'topic': '<topic>',
- 'category': '<category>',
- 'sub_category': '<sub_category>',
- 'product_family': '<product_family>',
- 'family': '<family>',
- 'identifier': '<identifier>',
- 'business_line': '<business_line>',
- 'division': '<division>',
- 'marks_list': '<marks_list>',
- 'ui_element_name': '<ui_element_name>', //Name of the UI element from the Zeplin file.
- 'ui_element_category': 'ui_element_category' //Category of the UI element.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment