{"id":15471,"date":"2021-11-22T22:02:31","date_gmt":"2021-11-22T21:02:31","guid":{"rendered":"https:\/\/www.makingscience.com\/?p=15471"},"modified":"2021-11-22T22:02:31","modified_gmt":"2021-11-22T21:02:31","slug":"demystifying-datalayers","status":"publish","type":"post","link":"https:\/\/www.makingscience.com\/us\/blog\/demystifying-datalayers\/","title":{"rendered":"Demystifying DataLayers"},"content":{"rendered":"<h1><span style=\"font-weight: 400;\">What is a dataLayer?<\/span><\/h1>\n<p><span style=\"font-weight: 400;\">A dataLayer is where page view data (hits, users, sessions, and products viewed) is stored. We can use this data to improve the performance of a website.\u00a0<\/span><\/p>\n<h1><span style=\"font-weight: 400;\">What kind of variables can find in dataLayer?<\/span><\/h1>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Static<\/b><span style=\"font-weight: 400;\">: The data stored doesn\u2019t change &#8211; the values that we get are always the same. For example, the version of the dataLayer.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Dynamic<\/b><span style=\"font-weight: 400;\">: This is the most common way to get data into the dataLayer. For example, we can use the same dataLayer for every single product on our website, but the variable\u2019s value changes depending on the product that the user is viewing.\u00a0<\/span><\/li>\n<\/ul>\n<h1><span style=\"font-weight: 400;\">What are the benefits of having a dataLayer?<\/span><\/h1>\n<p><span style=\"font-weight: 400;\">The data that we get from the dataLayer gives us more information about a user\u2019s behavior on our website. We can create and adjust our business strategy based on the user data that we get from the first visit until the moment he\/she purchases something on our website.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Some other benefits from implementing dataLayer on our website include:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Content grouping<\/b><span style=\"font-weight: 400;\">: It allows us to have a standard system for exposing data, making it easier to detect changes. In addition, we can configure conversion funnels.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Ecommerce<\/b><span style=\"font-weight: 400;\">: Ecommerce variables are the most reliable and secure way to measure conversions (transactionId and transactionTotal). When using the dataLayer, you are less subject to errors if the website is modified.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Audiences<\/b><span style=\"font-weight: 400;\">: By collecting more valuable data through the dataLayer, we can create better segmented audience lists. These lists can provide us insights to improve the conversion rates of our campaigns.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Ease of creating activation rules in pixels<\/b><span style=\"font-weight: 400;\">: A label can also be triggered based on the information that appears in our dataLayer.<\/span><\/li>\n<\/ul>\n<h1><span style=\"font-weight: 400;\">What variables could you collect in the dataLayer depending on the business industry?<\/span><\/h1>\n<ul>\n<li><b>Travel sector<\/b>\n<ul>\n<li><span style=\"font-weight: 400;\">Number of nights that the user has selected<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Number of people who have purchased the service<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Destination chosen in the conversion<\/span><\/li>\n<li><span style=\"font-weight: 400;\">How long in advance the user has purchased the service<\/span><\/li>\n<\/ul>\n<\/li>\n<li><b>Retail sector<\/b>\n<ul>\n<li><span style=\"font-weight: 400;\">Product discounts<\/span><\/li>\n<li><span style=\"font-weight: 400;\">The number of reviews of certain products<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Number of photos of a product on the product page<\/span><\/li>\n<li><span style=\"font-weight: 400;\">If the product was on sale or not<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Number of previous purchases by a certain user<\/span><\/li>\n<\/ul>\n<\/li>\n<li><b>Automotive sector:<\/b>\n<ul>\n<li><span style=\"font-weight: 400;\">Type of engine: 135cv, 150cv\u2026\u00a0<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Car color color: blue, red, green\u2026<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Vehicle fuel: diesel or gasoline<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Name of the dealer: Enterprise, Chevy, etc.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Type of car: new, semi-new, or used car.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>In short, it is very important to define a good measurement strategy to be able to extract more information from our users. In the long run, this will help us make strategic decisions within our company.<\/p>\n<ul>\n<li style=\"list-style-type: none;\"><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>What is a dataLayer? A dataLayer is where page view data (hits, users, sessions, and products viewed) is stored. We can use this data to improve the performance of a website.\u00a0 What kind of variables can find in dataLayer? Static: The data stored doesn\u2019t change &#8211; the values that we get are always the same. [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":15627,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[200],"tags":[],"class_list":["post-15471","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.makingscience.com\/us\/wp-json\/wp\/v2\/posts\/15471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.makingscience.com\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.makingscience.com\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.makingscience.com\/us\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/www.makingscience.com\/us\/wp-json\/wp\/v2\/comments?post=15471"}],"version-history":[{"count":0,"href":"https:\/\/www.makingscience.com\/us\/wp-json\/wp\/v2\/posts\/15471\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.makingscience.com\/us\/wp-json\/wp\/v2\/media\/15627"}],"wp:attachment":[{"href":"https:\/\/www.makingscience.com\/us\/wp-json\/wp\/v2\/media?parent=15471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.makingscience.com\/us\/wp-json\/wp\/v2\/categories?post=15471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.makingscience.com\/us\/wp-json\/wp\/v2\/tags?post=15471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}