Microsoft Ads Data Collection Examples

ListenLayer automatically generates powerful data layers to enhance your Microsoft Ads conversion tracking. Check out the samples below and open a free account.

Microsoft Ads Data Layer Examples

Microsoft Ads becomes much more powerful when you begin to collect different conversions, categorized by characteristics, along with various values. This allows you to focus the optimization of different campaigns towards different targets. In addition, you can collect events that are not considered conversions but enhance your ability to understand the audience and visitors interacting with your search ads.

ListenLayer automates data collection using the data layer and allows you to write rules to customize your data.

 

Important Notice!

While the following examples show actual code, ListenLayer requires no programming experience! We generate the following data layer values automatically so that you can capture them as variables for your conversion tracking - no coding required! Check out our examples and use cases to see how easy it is to implement and scale conversion tracking and web analytics.

Custom Triggers for Conversion Tracking

ListenLayer automatically generates powerful and accurate events inside the data layer, allowing you to create GTM triggers by simply referencing the event name.  Once these triggers are built, conversion data can be sent to Microsoft Ads using a simple tag in GTM that leverages variables – you’ll never miss a conversion again!

This example shows events from our Gravity Forms Listener. Each Listener generates events unique to the application’s functionality.

event: 'gfFormSubmitted',

event: 'gfFormLoaded',

event: 'gfFormValidationFailed',

Automatic Data Layer Values

With each event generated by ListenLayer, we push powerful details about the user’s session and activity into the data layer. These become available as variables inside GTM.

Use these variables to modify triggers in GTM or enhance the data you collect using Microsoft Ads custom event tagging.

event: 'gfFormStepChange',
  formAutomaticValues: {
    formID: '#gform_3',
    formFieldValues: {
      input_2: {
        id: 'input_3_2',
        label: 'Are you ready?',
        name: 'input_2',
        type: 'select-one',
        value: 'First Choice'
      },
    },
    formLocation: {
      href: 'https://demo.hostedstaging.com/gravity-step-form/',
      host: 'demo.hostedstaging.com',
      hostname: 'demo.hostedstaging.com',
      pathname: '/gravity-step-form/',
      protocol: 'https:',
      originPathName: 'https://demo.hostedstaging.com/gravity-step-form/'
    },
    stepNumberCompleted: 4,
    stepNumberStart: 5,
    stepFinal: false
  }

Custom Data Layer Values in GTM

With our powerful interface, marketers can write rules to generate custom data layer values – no programming required!

Now activity on your website can be categorized and organized exactly how you want it. Once you have your activity categorized with assigned values, use GTM to send specific events to Microsoft Ads for different types of conversions. Now you can segment conversions better to understand campaign quality and improve optimization.

formCustomValues: {
	//custom variable values display here based on rules you write
	formCategory: 'Demo',
	formName: 'Landing Page Demo Form',
	formQuality: 'Low'
},

Start Leveraging Custom Events for Microsoft Ads

Microsoft Ads allows you to send custom events into the advertising platform to create conversions and collect additional data about your visitors. Each custom event enables you to define a name, category, label, and value.

Combining this with ListenLayer allows you to collect powerful data for audience building, segmentation, and conversion tracking in Microsoft Ads. For example, assign each of your forms to a category, capture this category in GTM, and use it to organize your conversions based on form type.

Here is an example of a custom event being sent to Microsoft Ads using Google Tag Manager.  The items in brackets are data layer variables that come from customizations inside ListenLayer.

<script>
   window.uetq = window.uetq || [];  
   window.uetq.push ('event', 'Form Submission', {'event_category': '{{formCategory}}', 'event_label': '{{formName}}', 'event_value': '{{conversionValue}}'});  
</script>