How to Monitor Data Quality: A Detailed Guide

Data Quality Data Analytics
Demo

Preventing an error in data collection is easier than dealing with its consequences. The sagacity of your business decisions depends on the quality of your data. In this article, we tell you how to check the quality of data at all stages of collection, from the statement of work to completed reports.

It’s crucial to assess data quality early on and ensure data quality monitoring by using tools and techniques that examine data against established quality dimensions and uncover inconsistencies.

A comprehensive data quality assessment is essential in the early stages of data collection, employing various techniques such as data profiling, validation, and cleansing to establish specific quality rules and thresholds.

Want to be sure about the quality of your data? Leave it to OWOX BI. We’ll help you develop data quality metrics and customize your analytics processes to ensure high data quality throughout the data collection and data quality monitoring process.

With OWOX BI, tracking data quality metrics becomes a key component of our service, ensuring the accuracy of your data. You don’t need to look for connectors and clean up and process data. You’ll get ready data sets in an understandable and easy-to-use structure.

Note: This post was originally published in January 2020 and was completely updated in June 2024 for accuracy and comprehensiveness on Web analytics.

What is Data Quality?

Data quality pertains to the state of data determined by factors such as precision, entirety, dependability, and pertinence. High-quality data must be fit for its intended uses in operations, decision-making, and planning, ensuring it effectively meets the needs of its users.

How to Measure Data Quality?

Consistency: Consistency checks ensure data is uniform across different sources and systems, maintaining standardized formats and values representing key data quality dimensions like accuracy, completeness, consistency, timeliness, validity, uniqueness, and privacy and security. This process is part of a broader data quality assessment, which encompasses techniques such as data profiling, data validation, and data cleansing, along with establishing specific data quality rules and thresholds.

Accuracy: Accuracy measures how closely data reflects the real-world values it is supposed to represent, which is crucial for maintaining high data quality dimensions.

Completeness: Completeness assesses whether all necessary data is present and no critical elements are missing, a vital aspect of data quality dimensions.

Auditability: Auditability involves the ability to trace and verify data through accessible, clear records that show its history and usage, contributing to the transparency and reliability of data quality dimensions.

Orderliness: Orderliness checks the arrangement and organization of data, ensuring it is systematic and logically structured, an important factor in data quality dimensions.

Uniqueness: Uniqueness ensures no data records are duplicated, and each entry is distinct and singular within its dataset, a critical component of data quality dimensions.

Timeliness: Timeliness evaluates whether data is up-to-date and available when needed, ensuring it is relevant for current tasks and decisions, and is a key element of data quality dimensions.

Uncover in-depth insights

Ultimate Data Quality Checklist

Download now

Bonus for readers

Ultimate Data Quality Checklist

To effectively monitor and improve these aspects, organizations rely on data quality metrics, quantitative indicators that track and report changes in data quality dimensions and issues over time.

It's crucial to track data quality metrics as they serve as quantitative indicators to determine the accuracy of data, enabling organizations to find areas of improvement and confirm the effectiveness of monitoring tools.

What is Data Quality Monitoring?

The data quality monitoring process is a continuous one of evaluating and ensuring the integrity, accuracy, and reliability of data throughout its lifecycle, beginning with a foundational step of data quality assessment.

This assessment involves context awareness and the application of various techniques such as data profiling, data validation, and data cleansing, along with the establishment of specific data quality rules and thresholds. It sets the stage for effective monitoring by identifying the key metrics to track.

The process of data quality monitoring involves setting benchmarks for data quality attributes such as completeness, consistency, and timeliness and using tools and methodologies, including advanced data quality monitoring techniques, to track data quality metrics against these standards.

By identifying anomalies and errors in real-time, data quality monitoring enables organizations to take immediate corrective actions, thereby preventing the negative impacts of low-quality data on business operations and decision-making.

The importance of choosing a data quality monitoring solution that enables quick identification and resolution of data quality issues cannot be overstated, as they are vital for preserving the overall health of the data ecosystem.

Importance of Data Quality Monitoring

Monitoring the quality of your data is crucial for ensuring its reliability and usability in decision-making processes. Addressing poor data quality issues early helps prevent errors and reduces costs associated with inaccuracies, enhancing operational efficiency.

Regular data quality monitoring safeguards against the potential risks of regulatory non-compliance and protects the organization’s reputation from the negative impacts of data quality issues.

Tracking data quality metrics is essential in this process, as it provides quantitative indicators that help determine the accuracy of data, thereby enhancing the decision-making process by providing accurate data insights.

Through upholding rigorous data standards and consistently monitoring and rectifying data quality concerns, companies can gain deeper insights into their performance, enhance customer interactions, and secure a competitive advantage in the market, resulting in enhanced business results.

Benefits of High-Quality Data

  • Improved Decision-Making: Accurate and timely data enables better decision-making, reducing errors and enhancing strategic initiatives.
  • Increased Efficiency: High-quality data streamlines processes, reducing the need for rework and enabling faster responses to market changes.
  • Enhanced Customer Satisfaction: Accurate data helps businesses understand and meet customer needs effectively, leading to increased satisfaction and loyalty.
  • Competitive Advantage: Companies with high-quality data can gain insights faster, recognize trends, and adapt to market demands before their competitors.
  • Regulatory Compliance: Quality data ensures compliance with industry standards and regulatory requirements, reducing the risk of fines and penalties.
  • Cost Reduction: By eliminating errors and duplicates, high-quality data reduces costs associated with data management and operational inefficiencies.
  • Improved Revenue: Reliable data can improve marketing efforts, enhance customer targeting, and lead to better sales outcomes.
  • Risk Management: High-quality data improves risk assessment capabilities, allowing businesses to identify potential risks and mitigate them effectively.

The Importance of Testing in Web Analytics

Unfortunately, many companies that spend substantial resources storing and processing data still make important decisions based on intuition and their own expectations instead of data. Utilizing data performance testing tools is essential for simulating various data processing scenarios to ensure the reliability of web analytics.

Why does that happen? Distrust of data is exacerbated by situations where data provides an answer that’s at odds with the expectations of the decision-maker. In addition, if someone has encountered errors in data or reports in the past, they’re inclined to favor intuition. This is understandable, as a decision made on the basis of incorrect data may throw you back rather than move you forward.

Imagine you have a multi-currency project. Your analyst has set up Google Analytics in one currency, and the marketer in charge of contextual advertising has set up cost importing into Google Analytics 4 in another currency. As a result, you have an unrealistic return on ad spend (ROAS) in your advertising campaign reports. If you don’t notice this error in time, you may either disable profitable campaigns or increase the budget on loss-making ones.

In addition, developers are usually very busy, and implementing web analytics is a secondary task for them. While implementing new functionality — for example, a new design for a unit with accessories — developers may forget to check that data is being collected in Google Analytics 4. As a result, when the time comes to evaluate the effectiveness of the new design, it turns out that the data collection was broken two weeks ago. Surprise.

We recommend testing web analytics data as early and as often as possible to minimize the cost of correcting an error.

Cost of Correcting a Mistake

Imagine you've made an error during the specification phase. If you find it and correct it immediately, the fix will be relatively cheap. If the error is revealed after implementation, when building reports, or even when making decisions, the cost of fixing it will be very high.

How to Implement Website Data Collection

Data collection typically consists of five key steps:

  1. Formulate a business challenge. Say you need to assess the efficiency of an algorithm for selecting goods in a recommendations block.
  2. A web analyst or a person responsible for data collection designs a system of metrics to be tracked on the site.
  3. This person sets up Google Analytics 4, OWOX BI Streaming, as well as the Google Tag Manager.
  4. The one sends terms of reference for developers to implement.
  5. After the developer implements metrics and sets up data collection, the analyst works with reports.

At almost all of these stages, it's very important to check your data. It's necessary to test technical documentation, Google Analytics 4 and Google Tag Manager settings, and, of course, the quality of data collected on your site or in your mobile application.

Features of Website Data Collection Testing

Before you go to each step, let's take a look at some requirements for data testing:

  • You can't test without tools. At a minimum, you'll have to work with the developer console in a browser.
  • There's no abstract-expected result. You need to know exactly what you should end up with. We always have a certain set of parameters we need to collect for any user interaction with a site. We also know the values these parameters should take.
  • Special knowledge is necessary. At a minimum, you need to be familiar with the documentation for the web analytics tools you use, as well as the practice and experience of market participants.

    Testing Documentation for Website Data Collection

    As we’ve mentioned, it’s much easier to correct an error if you catch it in the specifications. Therefore, checking documentation starts long before collecting data. Let’s figure out why we need to check your documentation.

    Purposes of testing documentation:

    • Fix mistakes with little effort. An error in documentation is just an error in written text, so all you have to do is make a quick edit.
    • Prevent the need for changes in the future that may affect the site/application architecture.
    • Protect the analyst’s reputation. An instrument with errors in development could call into question the competence of the person who drafted it.

      Most common errors in specifications:

      1. Typos. A developer can copy the names of parameters without reading them. This isn’t about grammatical or spelling errors, but rather about incorrect names of parameters or values that these parameters hold.
      2. Ignoring fields when tracking events. For example, an error message may be ignored if a form wasn’t submitted successfully. Overlooking data quality rules when tracking events can lead to inaccurate or inconsistent data collection.
      3. Invalid field names and a mismatch with the enhanced ecommerce scheme. Implementing enhanced ecommerce with a dataLayer variable requires clear documentation. Therefore, it’s better to check all fields twice when drafting your specifications.
      4. You don’t have currency support for a multi-currency site. This problem is relevant to all revenue-related reports.
      5. Hit limits aren’t taken into account. For example, say there can be up to 30 different products on a catalog page. If we transfer information about views at the same time for all products, it’s likely that the hit in Google Analytics will not be transferred.

      Data validation plays a crucial role in preventing these errors by ensuring the data meets established quality criteria before it's processed.

      Testing Google Analytics 4 and Google Tag Manager Settings

      The next step after you check your technical documentation is to check your Google Analytics 4 and Google Tag Manager settings.

      Why test Google Analytics 4 and Google Tag Manager settings?

      • Ensure that data collection systems correctly process parameters. Google Analytics 4 and Google Tag Manager can be configured in parallel with the implementation of metrics on your site. And until the analyst is done, the data will not appear in Google Analytics.
      • Make it easier to test metrics embedded on the site. You'll only need to concentrate on part of the developer's work. At the final stage of X, you'll need to look for the cause of the error directly on the site, not in the platform settings.
      • Low repair cost as there's no need to involve developers.

        Most common errors in Google Analytics:

        1. A custom variable wasn't created. This is especially relevant for Google Analytics 4 360 accounts, which can have up to 200 metrics and 200 parameters. In that case, it's very easy to miss one.
        2. The specified access scope is invalid. You won't be able to catch this error during the dataLayer review phase or by reviewing the hit you're sending, but when you create the report, you'll see that the data doesn't look as expected.
        3. You get a duplicate of an existing parameter. This error doesn't affect the data being sent, but it may cause problems when checking and building reports.

        Most common errors in Google Tag Manager:

        1. No parameters have been added, such as to the Google tag or Google Analytics Settings variable.
        2. The index in the tag doesn't match the parameter in Google Analytics 4, creating a risk that values will be passed to the wrong parameters. For example, say you specified the index of the number of users parameter in GTM for the item rating parameter. This error is likely to be immediately found when building reports, but you'll no longer be able to influence the collected data.
        3. The invalid variable name is specified in the dataLayer. When you create a dataLayer, be sure to specify by which name the variable will be found in the dataLayer array. If you type or write another value, this variable will never be read from the dataLayer.
        4. Enhanced ecommerce tracking is not enabled.
        5. The start trigger isn't configured correctly. For example, the regular expression for triggering X is written incorrectly, or there's an error in the event name.

        Testing the Implementation of Google Analytics 4

        The last stage of testing is testing directly on the site. This stage requires more technical knowledge because you'll need to watch the code, check how the container is installed, and read the logs. So, you need to be savvy and use the right tools.

        Why test embedded metrics?

        • Check that what's implemented complies with the specifications and record any errors.
        • Check whether the values to be sent are adequate. Verify that the parameters are transmitting the values to be transmitted. For example, the category of goods doesn't pass its name instead.
        • Give feedback to developers on the quality of implementation. Based on this feedback, developers can make changes to the site.

          The most common mistakes:

          1. Not all scenarios are covered. For example, say an item can be added to the cart on the product, catalog, promo, or master page — that is, anywhere where there's a link to the item. With so many entry points, you can miss something.
          2. The task isn't implemented on all pages. That is, for some pages or some partitions/directories, data isn't collected at all or is only partially collected. To prevent such situations, we can draw up a checklist. In some cases, we can have as many as 100 checks for one function.
          3. Not all parameters are implemented; that is, the dataLayer is only partially implemented.
          4. The dataLayer scheme for enhanced e-commerce is broken. This is especially true for events such as adding items to the cart, moving between checkout steps, and clicking on items. One of the most common errors in implementing enhanced ecommerce is missing square brackets on the product array.
          5. The dataLayer uses an empty string instead of null or undefined to zero the parameter. In this case, Google Analytics 4 reports contain empty lines. If you use null or undefined, this option will not even be included in the hit you're sending.

          Tools for Checking Data

          Tools we use to test data:

            Let’s take a closer look at these tools. Data quality tools are essential for generating data quality metrics and applying data quality rules to ensure data accuracy, consistency, and reliability.

            Google Analytics Debugger

            To get started, you need to install this extension in your browser and enable it. Then open the page ID and go to the Console tab. The information you see is provided by the extension.

            This screen shows the parameters that are transmitted with hits and the values that are transmitted for those parameters:

            There's also an extended e-commerce block. You can find it in the console as ec:

            In addition, error messages are displayed here, such as for exceeding the hit size limit.

            If you need to check the composition of the dataLayer, the easiest way to do this is to type the dataLayer command in the console:

            Here are all the parameters that are transmitted. You can study them in detail and verify them. Each action on the site is reflected in the dataLayer. Let's say you have seven objects. If you click on an empty field and call the dataLayer command again, an eighth object should appear in the console.

            Google Tag Manager Debugger

            To access Google Tag Manager Debugger, open your Google Tag Manager account and click the Preview button:

            Then, open your site and refresh the page. In the lower pane, a panel should appear that shows all the tags running on that page.

            Events that are added to the dataLayer are displayed on the left. By clicking on them, you can check the real-time composition of the dataLayer.

            Testing Mobile Browsers and Mobile Apps

            Features of mobile browser testing:

            • On smartphones and tablets, sites can be launched in adaptive mode or there can be a separate mobile version of the site. If you run the mobile version of a site on your desktop, it will be different from the same version on your phone.
            • In general, extensions cannot be installed in mobile browsers.
            • To compensate for this, you must enable Debug mode in the Google tag or in the Google Analytics tracking code on the site.

              Features of mobile application testing:

              • Working with application code requires more technical knowledge.
              • You'll need a local proxy server to intercept hits. In order to keep track of the number of requests a device sends, you can filter requests by the name of the application or the host to which they're sent.
              • All events are collected in Measurement Protocol format and require additional processing. Once hits have been collected and filtered, they must be copied and parsed into parameters. You can use any convenient tool to do this: Event Builder, formulas in Google Sheets, or a JavaScript or Python app. It all depends on what's more convenient for you. Plus, you'll need knowledge of Measurement Protocol parameters to identify errors in the sent events.

                How to Use Your Mobile Browser

                1. Connect your mobile device to your laptop via USB.
                2. Open Google Chrome on your device.
                3. In the Chrome developer console, open the Remote Devices report:
                1. Confirm the connection to your device by clicking OK in the dialog box. Then select the tab you want to inspect and click Inspect.
                2. Now, you can work with the developer console in standard mode, as in the browser. You will have all the familiar tabs: Console, Network, and others.

                How to Work with a Mobile App

                1. To work with a mobile application, you must install and run a proxy server. We recommend Charles.
                2. Once your proxy server is installed, check which IP address the application connects to:
                1. Then, take your device and configure the Wi-Fi connection through the proxy server using port 8888. This is the port Charles uses by default.
                2. After that, it's time to collect hits. Note that in applications, hits are not sent to collect but to batch. A batch is a packaged request that helps you send multiple requests. First, it saves application resources. Second, if there are network problems, the requests will be stored in the application, and one common pool will be sent as soon as the network connection is reestablished.
                1. Finally, the collected data must be parsed (disassembled) into parameters, checked in order, and checked against the specifications.

                Checking Data in Google Analytics 4 Reports

                This step is the fastest and easiest. At the same time, it makes sure the data collected in Google Analytics 4 makes sense. In your reports, you can check hundreds of different scenarios and look at indicators depending on the device, browser, etc. If you find any anomalies in the data, you can play the script on a specific device and in a specific browser.

                You can also use Google Analytics 4 reports to check the completeness of data transferred to the data layer. That is, depending on each of the scenarios, the variable is filled, whether there are all parameters in it, whether the parameters take the correct values, etc.

                The Most Useful Reports

                We want to share the most useful reports (in our opinion). You can use them as a data collection checklist:

                • Ecommerce Purchases reports
                • Lifecycle — Engagement — Events report
                • Cost Analysis report
                • Custom reports — For example, one that shows duplicate orders

                  Let's see what these reports look like in the interface and which of these reports you need to pay attention to first.

                  E-commerce Purchases Report

                  In GA4, the "E-commerce purchases" report not only tracks user progression through different stages of the shopping journey but also helps in assessing the completeness of data collection at each stage. This is crucial for identifying any gaps where data might not be accurately captured. For instance, if a significant drop-off is observed between the "add to cart" and "purchase" stages, it could indicate issues with the checkout process or with how events are tracked in that segment.

                  GA4 uses event-based tracking, which offers flexibility in monitoring specific interactions across the site. Each stage of the enhanced e-commerce process—viewing products, adding items to carts, initiating checkout, and completing a purchase—is tracked through designated events. Analyzing these events can reveal discrepancies or inefficiencies in data collection, enabling marketers to make necessary adjustments to tracking setups or site design to ensure comprehensive data collection and a smoother user experience.

                  What should we pay attention to here? First, it’s very strange if you have zero values in any of the columns. Second, if you have more values at some stage than at the previous stage, you’re likely to have problems collecting data. That’s weird and worth paying attention to. You can also switch between other parameters in this report, which should also be sent to Enhanced Ecommerce.

                  Events Report

                  First of all, it's necessary to walk through all parameters that are transmitted to Google Analytics and see what values each parameter takes. Usually, it's immediately clear whether everything is okay. More detailed analyses of each of the events can be carried out in custom reports.

                  Cost Analysis Report

                  Another report that can be useful for checking the importing of expense data into Google Analytics is Cost Analysis.

                  Measure CPO and ROAS in GA4

                  Automatically link your Ad Platforms cost data to Google Analytics 4 conversion data, so you can analyze your marketing KPIs and make fully informed decisions

                  Start Free Trial
                  Measure CPO and ROAS in GA4

                  We often see reports where there are expenses for some source or advertising campaign but no sessions. This can be caused by problems or errors in UTM tags. Alternatively, filters in Google Analytics 4 may exclude sessions from a particular source. These reports need to be checked from time to time.

                  Custom Reports

                  We would like to highlight the custom report that allows you to track duplicate transactions. It's very easy to set up: the parameter must be a transaction ID, and the key dimension must be transactions.

                  Note that when there's more than one transaction in the report, this means that information about the same order was sent more than once.

                  If you find a similar problem, read these detailed instructions on how to fix it.

                  Automatic Email Alerts

                  Google Analytics has a very good Custom Alerts tool that allows you to track important changes without viewing reports. For example, if you stop collecting information about Google Analytics sessions, you can receive an email notification.

                  We recommend that you set up notifications for at least these four metrics:

                  • Number of sessions
                  • Bounce rate
                  • Revenue
                  • Number of transactions

                    Testing Automation

                    In our experience, this is the most difficult and time-consuming task — the narrow line where mistakes are the most common.

                    To avoid problems with dataLayer implementation, checks must be done at least once a week. In general, the frequency should depend on how often you implement changes on the site. Ideally, you need to test the dataLayer after each significant change. It's time-consuming to do this manually, so we decided to automate the process.

                    Why Automate Testing?

                    To automate testing, we've built a cloud-based solution that enables us to:

                    • Check whether the dataLayer variable on the site matches the reference value
                    • Check the availability and functionality of the Google Tag Manager code
                    • Check that data is sent to Google Analytics and OWOX BI
                    • Collect error reports in Google BigQuery

                      Advantages of test automation:

                      • Significantly increase the speed of testing. In our experience, you can test thousands of pages in a few hours.
                      • Get more accurate results since the human factor is excluded.
                      • Lower the cost of testing, as you need fewer specialists.
                      • Increase the frequency of testing, as you can run tests after each change to the site.

                        A simplified scheme of the algorithm we use:

                        When you sign in to our app, you need to specify the pages you want to verify. You can do this by uploading a CSV file, specifying a link to the sitemap, or simply specifying a site URL, in which case the application will find the sitemap itself.

                        Then it's important to specify the dataLayer scheme for each scenario to be tested: pages, events, scripts (a sequence of actions, such as for checkout). Then you can use regular expressions to specify that the page types match the URL.

                        After receiving all this information, our application runs through all pages and events as scheduled, checks each script, and uploads test results to Google BigQuery. Based on this data, we set up email and Slack notifications.

                        Book a demo

                        Gain clarity for better decisions without chaos

                        No switching between platforms. Get the reports you need to focus on campaign optimization

                        Book a demo

                        FAQ

                        Expand all Close all
                        • What are data quality metrics?

                          Data quality metrics are standardized criteria used to evaluate the accuracy, completeness, consistency, reliability, and timeliness of data. These metrics help organizations quantify their data quality and identify areas for improvement.

                        • How to monitor the quality of data?

                          Monitoring data quality involves regularly assessing data against predefined metrics, using tools that automate the detection of anomalies and inconsistencies, and implementing corrective actions based on these insights.

                        • How do you measure data quality?

                          Data quality is measured by applying specific metrics such as accuracy, completeness, consistency, uniqueness, and timeliness. Organizations use these metrics to assess the condition of data and ensure it meets the required standards for their operational and analytical purposes.

                        • Why do we monitor data quality?

                          Monitoring data quality is essential to ensure the information remains accurate, consistent, and useful for making informed decisions. It aids in risk mitigation cost reduction stemming from errors and enhances overall efficiency and effectiveness in business operations.

                        • What is data testing?

                          Data testing is the process of verifying and validating the accuracy, completeness, consistency, and validity of data used in a system or application. It involves various techniques and tools to identify and correct errors, inconsistencies, and discrepancies in the data.
                        • Why is data testing important?

                          Data testing is crucial to ensure that data is correct, reliable, and trustworthy. Inaccurate data can lead to wrong decisions, loss of revenue, and damage to reputation. Data testing helps to identify and fix data errors early on, saving time and resources and improving data quality.
                        • What are the different types of data testing?

                          There are several types of data testing, including functionality testing, integration testing, performance testing, security testing, and usability testing. Each type of testing evaluates different aspects of data quality and helps to ensure that data meets the required standards.