Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event on every page before Google Tag Manager loads.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'page_info',
- 'page_category': 'product', //Category of the page.
- 'page_template': 'product page', //The name of the Sitecore template.
- 'website': 'www.slb.com', //The website hostname where the event happened.
- 'content_published_date': '2022 Jun 15', //Date when the content was first published.
- 'content_updated_date': '2022 Aug 27', //Date when the content was last updated.
- 'basin': '<basin>', //GEO related, specific to SLB.
- 'content_status': 'free', //If the content is premium or not.
- 'segment': '<segment>', //TBD
- 'trade_publications': '<trade_publications>', //TBD
- 'owner_inquiry': '<owner_inquiry>', //Area of interest. Super important.
- 'product_name': '<product_name>',
- 'service_name': '<service_name>',
- 'domain': '<domain>',
- '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>',
- 'total_media_duration': '188', //Total media duration in seconds for all videos and/or audio players on specific page. Combined if there are multiple media assets on the page.
- 'time_to_consume_media_range': '2-4', //total_media_duration/60 and grouped by specific ranges (in minutes).
- 'word_count': '1522', //Total count of words within the page's content.
- 'time_to_consume_text_range': '5-7', //word_count divided by 250 (average reading speed) and grouped by specific ranges (in minutes).
- 'time_to_consume_content': '9', //total_media_duration/60 + word_count/250
- 'time_to_consume_content_range': '<division>', //total_media_duration/60 + word_count/250 grouped by ranges (in minutes)
- 'word_count_range': '1.5k-2k', //Total count of words within a page's content, grouped by ranges.
- 'images_count_range': '2-3', //Total count of images within a page, grouped by ranges.
- 'media_count_range': '1', //Total count of media files (audio, video) on a page, grouped by ranges.
- 'content_group': 'resource', //Content group that the content piece belongs to.
- 'content_type': 'case study', //Type of content.
- 'title': '<title>', //Title of the content piece.
- 'content_category': 'new energy', //Category that the content piece belongs to.
- 'author_name': '<author_name>' //Name of the author(s). If multiple authors, separate names by a comma.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment