Advanced: Reporting Custom Events

In these examples, we have used button clicks to trigger custom events but you can choose to report any other user action (such as selecting a checkbox or pausing a video etc) as a custom event. Note: To report custom events, you must use the JavaScript version of the UET tag and customize the tag to report custom events.

  1. To see how we installed the JavaScript version of the Bing Ads UET tag in the body of this webpage, right-click the webpage and then click View source or View page source depending on your browser.
  2. Find the UET tag in the body section of this webpage. UET tags can be anywhere on a webpage (on this webpage its in the body section)
    • In the head section (before the closing head tag)
    • In the body section (before the closing body tag).
  3. As your webpage loads, it triggers the UET tag that results in HTTP requests. The most important request is to bat.bing that looks like http://bat.bing.com/action/0?ti=.... This request tells Bing Ads about the user visits to your webpage. You can use tools like Fiddler to monitor all the requests that your browser is making when your webpage loads.
  4. For custom event, an additional HTTP request is triggered to report the same to Bing Ads. The request is similar to the bat.bing but it has different parameters to report custom event (as opposed to just page visit).
  5. To report a custom event, click Click here to report custom event (static.. If you turn on a tool like fiddler, you can see new HTTP request generated to bat.bing.com to report the custom event.
  6. To report variable revenue associated with a custom event, click Click here to report custom event with variable revenue (static..
  7. To report variable revenue associated with a custom event with dynamic values, click Click here to report custom event with variable revenue (advanced ..
In the first 2 examples (5 and 6 above), we are sending static values for custom events and variable revenue to show how it works. However, in most cases, you will want to send dynamic values for the custom event and variable revenue parameters depending on which action the user has triggered on your webpage. The last example (7 above) shows you how to send dynamic values by reading values from your webpage (JavaScript variables, JavaScript functions and html elements etc). The exact mechanism is really up to you based on how your website works. Regardless, you need to be familiar with JavaScript to do this. Please do a view source of the page to go through the example.







Please refer to Bing Ads help documentation for more info on UET and why it is important for Conversion Tracking and Remarketing in Bing Ads.