Published on

Microsoft bing ads tracking error fixed On Shopify | A UET event was fired from within an IFrame

Introduction

Assalamu Alaikum! I hope everyone is doing well by the grace of Allah. Alhamdulillah, I am also fine. Yesterday, I encountered a problem with a live project related to UET tags in Microsoft Bing Ads. In a previous live project, I successfully implemented Bing Ads Conversion Tracking, and everything was functioning correctly. However, I noticed that the purchase event was not being recorded in the UET tag helper, even though the tag setup appeared to be correct.

This issue made me feel quite unsettled, as I strive to ensure everything runs smoothly. As a proactive measure, I began researching the problem and performed a review of multiple setups. Interestingly, I discovered that both the problematic website and one belonging to my colleague, Shafif Bhai, used the same setup.

To illustrate the issue more clearly, I will demonstrate how events are still being tracked correctly despite the apparent errors with the UET tags. Let’s dive into the steps I took to diagnose and ultimately resolve the tracking error.

Troubleshooting Steps

  1. Navigating to the Catalog: I started by going to the catalog and viewed a product. It became apparent that while there were event counts being registered, the client was still saying that the setup was incorrect.

  2. Verifying Tag Firing: Next, I confirmed that the UET tag was firing correctly. Events like "Add to Cart" were being triggered, and the corresponding values were being passed properly.

  3. Using the Data Layer Checker: I utilized the Data Layer Checker to verify that data was indeed being received. This provided some reassurance that the setup wasn’t entirely faulty.

  4. Understanding GTM and UET Tags: Upon inspecting the system further, I noted that even though there was an error with the User Interaction Tracking (UIT), the events were still firing successfully when products were viewed.

  5. Examining Payment Process: Finally, I tested the checkout process. After selecting a demo payment method, I checked to see if the "Purchase" event was recorded, which it successfully was—both in Bing Ads and on the UET tag helper.

Conclusion

Despite the initial challenges with the tracking setup, I was able to clarify the situation and demonstrate to the client that purchase events were being tracked correctly. Should you face a similar problem, I recommend following these troubleshooting steps and communicating transparently with your clients about the functionality and data flow.

As I refreshed the page and reviewed the event data, there was a steady flow of recordings—everything was functioning as it should be.

Stay well, stay healthy. Assalamu Alaikum!


Keywords

  • Microsoft Bing Ads
  • UET tag
  • Conversion Tracking
  • Shopify
  • Data Layer Checker
  • Add to Cart Event
  • Purchase Event
  • iframe

FAQ

Q1: What is a UET tag?
A: The UET (Universal Event Tracking) tag is used in Microsoft Bing Ads to track user interactions on your website and gather data for conversion tracking.

Q2: How can I fix tracking issues with Microsoft Bing Ads?
A: To resolve tracking issues, ensure your UET tags are firing correctly, verify your event setup, use data layer checkers, and confirm that events are being recorded in your analytics.

Q3: What should I do if my purchase event is not being recorded?
A: First, check your UET tag implementation, validate your event tracking settings, and use tools to ensure that the data is being sent correctly, even if there are errors indicated in the UI.

Q4: Can iframe codes affect event tracking?
A: Yes, using iframe can sometimes complicate event tracking, as UET events may fire from within an iframe, potentially leading to errors that need to be resolved in the setup.