How to Monitoring Web Analytics for Errors in Data Collection

Inevitably, something slips through the cracks when it comes to conversion tracking and web analytics data collection. Perhaps a new form is published, or someone removes your code. ListenLayer allows you to set up powerful monitoring rules that notify when specific activities occur or fail to occur. In this use case, we'll walk through how to use Monitoring to identify new forms added to your website without the required tracking categorization.

Create & Manage Custom Monitoring Rules that Notify You When Your Data Analytics Breaks!

Whether you want to simply monitor conversion activity or receive notifications about a new tracking element that is missing categorization, ListenLayer’s Monitoring Features allow you to write and manage custom rules. So you will always know what’s going on with your web analytics.

Steps & Code Examples

Step 1: Add Your Domain Name Inside ListenLayer
Step 1: Add Your Domain Name Inside ListenLayer

Navigate to the Website screen of your ListenLayer account and add your website domain name. Then copy the Website Script to place on your website using Google Tag Manager.

Step 2: Deploy Your ListenLayer Website Script
Step 2: Deploy Your ListenLayer Website Script

Create a Custom HTML Tag inside of Google Tag Manager that fires on All Pages. Place the tracking script from your ListenLayer account. A sample is shown here, but you must use the code from your account, not this example code!

<script type="text/javascript">(function(c,a,d,b,e) {c[b] = c[b] || [];
c=a.getElementsByTagName(d)[0];a=a.createElement(d);b="dataLayer"!= b ?"&l="+b:"";a.async = !0;
a.src = "https://assets.listenlayer.com/datalayer.min.js?id="+e+b;
c.parentNode.insertBefore(a,c)})(window,document,"script","dataLayer",
"00000000-0000-0000-0000-0000000000000");</script>
Step 3: Enable Your Listener & Features
Step 3: Enable Your Listener & Features

Enable Listeners for your website so that you can begin to capture user activity into the browser’s data layer automatically. If you are using our Monitoring feature, you may already have your Listeners configured, so feel free to skip a few steps. However, suppose you are brand new to ListenLayer. In that case, you’ll need to enable a Listener along with some of its Activity features to start to see data layer activity appear on your website.

Don’t forget to publish your changes inside ListenLayer.

Step 4: Identify What You Would Like to Monitor
Step 4: Identify What You Would Like to Monitor

ListenLayer generates automatic data layer activity, but you can also write rules to push custom values into the data layer. Either way, before you configure Monitoring, you’ll need to decide what your monitoring should be identifying.

In this example, we have a custom rule that categorizes our forms, and we have a catch-all rule that will return an “Unknown” form category if a new form is seen on the website. We make sure this rule is configured and working before setting up Monitoring, which will notify us when “Uknown” forms are seen.

Step 5: Enable Monitoring
Step 5: Enable Monitoring

You’ll need to enable the Monitoring feature inside the Listener you are using, and once enabled, a new Monitoring menu item will appear in the Listener’s menu.

Step 6: Build Your Monitoring Rule
Step 6: Build Your Monitoring Rule

Now it’s time to build our Monitoring conditions. First, create your rule and configure the condition by completed the required settings. In this example, we will send ourselves a notification anytime a HubSpot form is submitted that is categorized as “Unknown” so that we can quickly jump into ListenLayer and categorize the form before we lose conversion segmentation!

Step 6: Configure Your Custom Notification
Step 6: Configure Your Custom Notification

We can now define a custom notification to be sent out whenever the condition from the previous step is met. This notification can be sent to any of the users on our account, and the notification itself can contain variables from our data layer!

In this example, we use the custom notification to include the form ID and the form location to quickly take action.

Make sure to save and publish your ListenLayer changes!

Step 8: Test Your Notification
Step 8: Test Your Notification

After publishing our ListenLayer changes, we can test our notification by triggering the activity that will match the condition we wrote. In this example, we submit a form with “Unknown” categorization and receive the notification instantly in our email inbox!