filipr27

ga4 - slb new - page_info

Sep 13th, 2022 (edited)
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Push this dataLayer event on every page before Google Tag Manager loads.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'page_info',
  7.  'page_category': 'product',  //Category of the page.
  8.  'page_template': 'product page',  //The name of the Sitecore template.
  9.  'website': 'www.slb.com',  //The website hostname where the event happened.
  10.  'content_published_date': '2022 Jun 15',  //Date when the content was first published.
  11.  'content_updated_date': '2022 Aug 27',  //Date when the content was last updated.
  12.  'basin': '<basin>',  //GEO related, specific to SLB.
  13.  'content_status': 'free',  //If the content is premium or not.
  14.  'segment': '<segment>',  //TBD
  15.  'trade_publications': '<trade_publications>',  //TBD
  16.  'owner_inquiry': '<owner_inquiry>',  //Area of interest. Super important.
  17.  'product_name': '<product_name>',
  18.  'service_name': '<service_name>',
  19.  'domain': '<domain>',
  20.  'strategic_field': '<strategic_field>',
  21.  'solution': '<solution>',
  22.  'topic': '<topic>',
  23.  'category': '<category>',
  24.  'sub_category': '<sub_category>',
  25.  'product_family': '<product_family>',
  26.  'family': '<family>',
  27.  'identifier': '<identifier>',
  28.  'business_line': '<business_line>',
  29.  'division': '<division>',
  30.  'marks_list': '<marks_list>',
  31.  '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.
  32.  'time_to_consume_media_range': '2-4',  //total_media_duration/60 and grouped by specific ranges (in minutes).
  33.  'word_count': '1522',  //Total count of words within the page's content.
  34.  'time_to_consume_text_range': '5-7',  //word_count divided by 250 (average reading speed) and grouped by specific ranges (in minutes).
  35.  'time_to_consume_content': '9',  //total_media_duration/60 + word_count/250
  36.  'time_to_consume_content_range': '<division>',  //total_media_duration/60 + word_count/250 grouped by ranges (in minutes)
  37.  'word_count_range': '1.5k-2k',  //Total count of words within a page's content, grouped by ranges.
  38.  'images_count_range': '2-3',  //Total count of images within a page, grouped by ranges.
  39.  'media_count_range': '1',  //Total count of media files (audio, video) on a page, grouped by ranges.
  40.  'content_group': 'resource',  //Content group that the content piece belongs to.
  41.  'content_type': 'case study',  //Type of content.
  42.  'title': '<title>',  //Title of the content piece.
  43.  'content_category': 'new energy',  //Category that the content piece belongs to.
  44.  'author_name': '<author_name>'  //Name of the author(s). If multiple authors, separate names by a comma.
  45.  });
  46. </script>
Advertisement
Add Comment
Please, Sign In to add comment