Google Tag Manager allows you to add multiple tracking codes to your site through one straightforward interface, saving time and simplifying deployment. Whether adding a global code or a single conversion event, you can set up a complete configuration to track most standard website actions.
In this article, we’ll cover setting up Microsoft Advertising’s Universal Event Tracking (UET) tag through Google Tag Manager (GTM). As you may know, the UET tag allows you to both track conversions and set up remarketing audiences through Microsoft Advertising.
Setting Up the UET Tag
First, you’ll need to set up your UET tag, if you haven’t done so yet. Within your Microsoft Advertising account, go to UET Tags under Conversion Tracking on the lefthand menu. From here, click the Create UET Tag button.
Next, you’ll be prompted to add a name and optional description for your tag. You’ll likely want to give it a name corresponding to your brand name and/or website. If you’re planning to create multiple tags for multiple sites, you’ll want to delineate those within names.
Finally, you’ll see a box with the tracking code. For Google Tag Manager, you’ll just need to copy the ID shown above the code snippet.
Setting Up the Global Microsoft Advertising Tag in GTM
Now, it’s time to set up the global Microsoft Advertising tag in your GTM account. Navigate to the GTM workspace for your site and click the New button to create a tag.
Within the tag creation interface, name your tag accordingly and choose a tag type from the Tag Configuration section. Find Bing Ads Universal Event Tracking here (note that you can use the search bar to quickly locate it!).
Now, paste your tag ID into the Bing Ads UET ID field at the top. If you’re simply wanting to deploy the tag across the site, you can leave the rest of the settings alone for now.
Next, choose All Pages from the Triggering section.
Finally, save your tag. Note that changes won’t become live until you submit any edits you’ve made to push your workspace live. You can do this right away, or wait until you’ve created all necessary tags.
If your site uses “thank you” pages for conversions, you can define URL-based conversion goals within the Microsoft Advertising interface. If you need to track conversions differently (for instance, if a form submits within the page without taking the user to a separate “thank you” page), you’ll need to use conversion events.
Start by creating a conversion goal and selecting “Event” as the conversion type.
On the next page, you can define specific parameters for your conversion. Choose custom identifiers for the fields (value is optional depending on if you want to correlate a specific value) and adjust other settings as needed
Now, in GTM, create a new tag and select the Bing tag type as before. Enter your UET tag’s ID and choose “Custom” as the event type. In the fields that appear, enter text corresponding to what you defined for the conversion goal.
Next, in the Trigger section, add a trigger with a type of Custom Event. Set the trigger to fire when “Event” equals a custom string of your choice. Save the trigger and tag, and publish it once you’re set.
For the custom event to fire properly, you will need to fire a snippet of code within the site when the form is submitted. This configuration will vary based on the site’s setup and the type of form in use. You may be able to edit a “thank you” message in the CMS to include the code upon submission; however, if in doubt, work with a developer to deploy it. In the example below, replace formsubmit with whatever text you’re using in GTM to define the event.
Now, it’s time to launch your campaigns and start tracking conversions! You can easily adjust and add to your GTM setup as needed during the course of your campaign.
For more on Google Tag Manager tracking, see additional articles about integration with other platforms:
- How to Configure AdWords Tracking with Google Tag Manager
- Configuring Google Analytics in Google Tag Manager
- Integrating Facebook and Google Tag Manager
What tips or questions do you have regarding Bing Ads tracking with Google Tag Manager? Let us know in the comments below!