{"id":1227,"date":"2019-08-08T08:41:41","date_gmt":"2019-08-07T22:41:41","guid":{"rendered":"https:\/\/blog.datatrue.com\/?p=1227"},"modified":"2024-03-13T23:01:13","modified_gmt":"2024-03-13T23:01:13","slug":"automated-data-layer-testing","status":"publish","type":"post","link":"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/","title":{"rendered":"Automated data layer testing"},"content":{"rendered":"\n<p>The data layer is generally regarded as the best practice for structuring how data is transferred from your website to your tag manager, and ultimately your tags.<\/p>\n\n\n\n<p>Adding a data layer to your analytics implementation introduces a new component that can be tested, enabling you to ensure your data collection systems are running reliably, and collecting accurate data.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The problem with the data layer<\/h2>\n\n\n\n<p>The data layer introduces a more structured way of passing data from your application to your analytics and marketing platforms.&nbsp; For those people concerned with data quality, the data layer provides another <em>test point<\/em> to validate the integrity and quality of the data being collected.&nbsp; The downside is the extra effort required to test.  The best way to address this problem is via automated testing.&nbsp; Automated testing allows you to quality assure your data with minimal effort freeing you up to focus on data analysis.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Automated data layer testing<\/h2>\n\n\n\n<p>Automated data testing is regarded as the best practice approach to achieve good data quality and governance. DataTrue\u2019s new Data Layer Validation feature enables you to test the data passed via your data layer as well as your tags. The following screenshots demonstrate how this feature alerts you to data layer issues.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1003\" height=\"326\" src=\"https:\/\/datatrue.com\/wp-content\/uploads\/2021\/08\/test-level.png\" alt=\"\" class=\"wp-image-225690\" srcset=\"https:\/\/datatrue.com\/wp-content\/uploads\/2021\/08\/test-level.png 1003w, https:\/\/datatrue.com\/wp-content\/uploads\/2021\/08\/test-level-980x319.png 980w, https:\/\/datatrue.com\/wp-content\/uploads\/2021\/08\/test-level-480x156.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1003px, 100vw\" \/><\/figure>\n\n\n\n<p>Figure 1 shows an overview of a DataTrue user journey test. It summarizes the state of the data layer at different points across the user journey. In this example:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Shows two successful data layer validations.<\/li>\n\n\n\n<li>Shows one successful and one failed data layer validation.<\/li>\n<\/ol>\n\n\n\n<p>You can then drill down into the details of each validation to inspect them more closely.&nbsp; The screenshot below shows the data layer validation configuration along with the data collected from the most recent test run.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"512\" src=\"https:\/\/datatrue.com\/wp-content\/uploads\/2021\/08\/validation-form-555x512-1.png\" alt=\"\" class=\"wp-image-225693\" srcset=\"https:\/\/datatrue.com\/wp-content\/uploads\/2021\/08\/validation-form-555x512-1.png 555w, https:\/\/datatrue.com\/wp-content\/uploads\/2021\/08\/validation-form-555x512-1-480x443.png 480w\" sizes=\"auto, (min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 555px, 100vw\" \/><\/figure>\n\n\n\n<p>The following features are provided to help you validate the data in your data layer:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The <strong>Data Source<\/strong> is used to collect the data from the data layer.&nbsp; Typically a data layer is implemented as a JavaScript variable, however, DataTrue has the ability to collect data from other elements of the web page including the DOM (document object model), cookies and the URL of the web page.<\/li>\n\n\n\n<li>The data collected from the data source is displayed in the <strong>Results<\/strong> panel.<\/li>\n\n\n\n<li>The <strong>Validation Settings<\/strong> are used to validate the data collected from the data layer.<\/li>\n\n\n\n<li>If the data layer value is a JavaScript object, then the properties of that object can be individually validated using <strong>Property Validations.<\/strong><\/li>\n<\/ol>\n\n\n\n<p>DataTrue\u2019s data layer validation feature brings speed, accuracy, and reliability to data layer testing, and excels in regression testing and continuous data quality monitoring. To try this new feature out, <a href=\"https:\/\/datatrue.com\/users\/sign_in\">login<\/a> to your DataTrue account and go to the help center and check out our support articles on how to setup data layer validations.<br>If you don\u2019t have a DataTrue account yet \u2013 please <a href=\"https:\/\/datatrue.com\/en\/contact-us\/\">contact us<\/a> and we can help you get started today.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The data layer is generally regarded as the best practice for structuring how data is transferred from your website to your tag manager, and ultimately your tags. Adding a data layer to your analytics implementation introduces a new component that can be tested, enabling you to ensure your data collection systems are running reliably, and [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":1258,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[16,9],"tags":[30,31,32],"class_list":["post-1227","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-assurance","category-data-assurance-tools","tag-data-assurance","tag-data-integrity","tag-data-layer"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Automated data layer testing - DataTrue<\/title>\n<meta name=\"description\" content=\"Validate data collected by Analytics Tracking Tags in Websites &amp; Mobile apps. Enterprise-grade quality assurance for Reporting, Consent &amp; Privacy Compliance and Agile Development cycles.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Automated data layer testing - DataTrue\" \/>\n<meta property=\"og:description\" content=\"Validate data collected by Analytics Tracking Tags in Websites &amp; Mobile apps. Enterprise-grade quality assurance for Reporting, Consent &amp; Privacy Compliance and Agile Development cycles.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/\" \/>\n<meta property=\"og:site_name\" content=\"DataTrue\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/datatruedigital\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-07T22:41:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-13T23:01:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/datatrue.com\/wp-content\/uploads\/2022\/04\/New-DT-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1328\" \/>\n\t<meta property=\"og:image:height\" content=\"208\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"DataTrue Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@data_true\" \/>\n<meta name=\"twitter:site\" content=\"@data_true\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataTrue Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/automated-data-layer-testing\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/automated-data-layer-testing\\\/\"},\"author\":{\"name\":\"DataTrue Team\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#\\\/schema\\\/person\\\/43e68c18f7eb83e8a1109f2e5ed97123\"},\"headline\":\"Automated data layer testing\",\"datePublished\":\"2019-08-07T22:41:41+00:00\",\"dateModified\":\"2024-03-13T23:01:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/automated-data-layer-testing\\\/\"},\"wordCount\":485,\"publisher\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/automated-data-layer-testing\\\/#primaryimage\"},\"thumbnailUrl\":\"\",\"keywords\":[\"Data Assurance\",\"Data Integrity\",\"Data Layer\"],\"articleSection\":[\"Data Assurance\",\"Data Assurance Tools\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/automated-data-layer-testing\\\/\",\"url\":\"https:\\\/\\\/datatrue.com\\\/en\\\/automated-data-layer-testing\\\/\",\"name\":\"Automated data layer testing - DataTrue\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/automated-data-layer-testing\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/automated-data-layer-testing\\\/#primaryimage\"},\"thumbnailUrl\":\"\",\"datePublished\":\"2019-08-07T22:41:41+00:00\",\"dateModified\":\"2024-03-13T23:01:13+00:00\",\"description\":\"Validate data collected by Analytics Tracking Tags in Websites & Mobile apps. Enterprise-grade quality assurance for Reporting, Consent & Privacy Compliance and Agile Development cycles.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/automated-data-layer-testing\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/datatrue.com\\\/en\\\/automated-data-layer-testing\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/automated-data-layer-testing\\\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/automated-data-layer-testing\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/datatrue.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Automated data layer testing\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/datatrue.com\\\/en\\\/\",\"name\":\"DataTrue\",\"description\":\"Web Analytics Quality Assurance\",\"publisher\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/datatrue.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#organization\",\"name\":\"DataTrue\",\"url\":\"https:\\\/\\\/datatrue.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/datatrue.com\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/New-DT-Logo.png\",\"contentUrl\":\"https:\\\/\\\/datatrue.com\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/New-DT-Logo.png\",\"width\":1328,\"height\":208,\"caption\":\"DataTrue\"},\"image\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/datatruedigital\\\/\",\"https:\\\/\\\/x.com\\\/data_true\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/Datatrue\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#\\\/schema\\\/person\\\/43e68c18f7eb83e8a1109f2e5ed97123\",\"name\":\"DataTrue Team\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Automated data layer testing - DataTrue","description":"Validate data collected by Analytics Tracking Tags in Websites & Mobile apps. Enterprise-grade quality assurance for Reporting, Consent & Privacy Compliance and Agile Development cycles.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/","og_locale":"en_US","og_type":"article","og_title":"Automated data layer testing - DataTrue","og_description":"Validate data collected by Analytics Tracking Tags in Websites & Mobile apps. Enterprise-grade quality assurance for Reporting, Consent & Privacy Compliance and Agile Development cycles.","og_url":"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/","og_site_name":"DataTrue","article_publisher":"https:\/\/www.facebook.com\/datatruedigital\/","article_published_time":"2019-08-07T22:41:41+00:00","article_modified_time":"2024-03-13T23:01:13+00:00","og_image":[{"width":1328,"height":208,"url":"https:\/\/datatrue.com\/wp-content\/uploads\/2022\/04\/New-DT-Logo.png","type":"image\/png"}],"author":"DataTrue Team","twitter_card":"summary_large_image","twitter_creator":"@data_true","twitter_site":"@data_true","twitter_misc":{"Written by":"DataTrue Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/#article","isPartOf":{"@id":"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/"},"author":{"name":"DataTrue Team","@id":"https:\/\/datatrue.com\/en\/#\/schema\/person\/43e68c18f7eb83e8a1109f2e5ed97123"},"headline":"Automated data layer testing","datePublished":"2019-08-07T22:41:41+00:00","dateModified":"2024-03-13T23:01:13+00:00","mainEntityOfPage":{"@id":"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/"},"wordCount":485,"publisher":{"@id":"https:\/\/datatrue.com\/en\/#organization"},"image":{"@id":"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/#primaryimage"},"thumbnailUrl":"","keywords":["Data Assurance","Data Integrity","Data Layer"],"articleSection":["Data Assurance","Data Assurance Tools"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/","url":"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/","name":"Automated data layer testing - DataTrue","isPartOf":{"@id":"https:\/\/datatrue.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/#primaryimage"},"image":{"@id":"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/#primaryimage"},"thumbnailUrl":"","datePublished":"2019-08-07T22:41:41+00:00","dateModified":"2024-03-13T23:01:13+00:00","description":"Validate data collected by Analytics Tracking Tags in Websites & Mobile apps. Enterprise-grade quality assurance for Reporting, Consent & Privacy Compliance and Agile Development cycles.","breadcrumb":{"@id":"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/datatrue.com\/en\/automated-data-layer-testing\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/datatrue.com\/en\/"},{"@type":"ListItem","position":2,"name":"Automated data layer testing"}]},{"@type":"WebSite","@id":"https:\/\/datatrue.com\/en\/#website","url":"https:\/\/datatrue.com\/en\/","name":"DataTrue","description":"Web Analytics Quality Assurance","publisher":{"@id":"https:\/\/datatrue.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/datatrue.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/datatrue.com\/en\/#organization","name":"DataTrue","url":"https:\/\/datatrue.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/datatrue.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/datatrue.com\/wp-content\/uploads\/2022\/04\/New-DT-Logo.png","contentUrl":"https:\/\/datatrue.com\/wp-content\/uploads\/2022\/04\/New-DT-Logo.png","width":1328,"height":208,"caption":"DataTrue"},"image":{"@id":"https:\/\/datatrue.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/datatruedigital\/","https:\/\/x.com\/data_true","https:\/\/www.youtube.com\/c\/Datatrue"]},{"@type":"Person","@id":"https:\/\/datatrue.com\/en\/#\/schema\/person\/43e68c18f7eb83e8a1109f2e5ed97123","name":"DataTrue Team"}]}},"_links":{"self":[{"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/posts\/1227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/comments?post=1227"}],"version-history":[{"count":0,"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/posts\/1227\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/datatrue.com\/en\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/media?parent=1227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/categories?post=1227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/tags?post=1227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}