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. E.g. home, products, services, catalogues, blog, corporate, cart, checkout, etc.
- '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.
- 'website_section': 'Duni', //Brand of the site, e.g. Duni, BioPak, DuniGroup.
- 'product_category': 'Napkins', //Include only on product related pages.
- 'word_count': '350', //Total count of words within a page's content. Include on all pages.
- 'estiamted_reading_time': '180000', //Estimated reading time in milliseconds. Can be calculated as (word count/250)*60000. Only include on blog pages.
- 'blog_category': 'Season' //Include only on blog pages. The category that the content piece belongs to.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment