For more details see how the Microsoft Ads (UET Tag) for Magento 2 extension works.
Link your Magento 2 store with Microsoft Advertising’s Universal Event Tracking (UET) system. Effectively optimize Microsoft (Bing) ad campaigns thanks to a better understanding of user activity after clicking on your ads.
To start the configuration, please navigate to Stores → Configuration → Amasty Extensions → Microsoft Ads → General.
Enable Microsoft Ads - Select Yes to enable the extension and make the Log All Events Data setting visible.
Log All Events Data - If enabled, you can find all frontend events data that was sent to Microsoft Advertising in the var/log/microsoft_ads.log file.
Create and manage UET tags from the Manage Microsoft Ads UET Tags grid. Go to Marketing → Microsoft Ads → Manage Microsoft Ads UET Tags to open the grid. Click the Add New UET tag button to add a new UET Tag for linking with your Microsoft Advertising account or click Edit in the Action column to change the already existing one.
It is possible to configure multiple UET Tags to collect event data separately for different store views if needed.
UET Tags ID - Past here the UET Tag ID copied from your Microsoft Advertising account.
To find and copy the UET Tag ID, navigate to your Microsoft Advertising account and take the following steps:
1. In the top menu, go to Tools → Conversion tracking → UET tag
2. In the table, find the UET tag that you want to use and copy its ID from the Tag ID column
3. Also, you can click View tag in the Action column and copy ID from here
Is Enabled - Set to Yes if you’d like to activate this very UET tag.
Store View - Choose the store view(s) to where the UET tag will be applied.
Expand this tab to specify which user actions on your website to track as events using the UET Tag.
Here's the list of available events for tracking with the extension:
After the creation/editing of the UET Tag is complete, save the configuration and flush the Magento Cache.
Test the UET Tag status and configuration by using the UET Tag Helper (by Microsoft Advertising) browser extension. You can install this browser extension on Microsoft Edge or Google Chrome.
Here is the example of the Google Chrome's extension work:
Find out how to install Microsoft Ads (UET Tag) for Magento 2 via Composer.