filipr27

GA44 - page_info - Duni

Apr 27th, 2023 (edited)
686
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. E.g. home, products, services, catalogues, blog, corporate, cart, checkout, etc.
  8.  'page_subcategory': 'product page',  //Category of the page. E.g. homepage, product detail page, category landing page, category list page, service page, blog homepage, blog article page, catalogues, sustainability, cart, checkout steps, order confirmation, etc.
  9.  'website_section': 'Duni',  //Brand of the site, e.g. Duni, BioPak, DuniGroup.
  10.  'product_category': 'Napkins',  //Include only on product related pages.
  11.  'word_count': '350',  //Total count of words within a page's content. Include on all pages.
  12.  'estiamted_reading_time': '180000',  //Estimated reading time in milliseconds. Can be calculated as (word count/250)*60000. Only include on blog pages.
  13.  'blog_category': 'Season'  //Include only on blog pages. The category that the content piece belongs to.
  14.  });
  15. </script>
Advertisement
Add Comment
Please, Sign In to add comment