- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
07-24-2017 03:44 AM - edited 07-24-2017 04:25 AM
Hi all
I want to fire multiple Bing (UET) Tags on our site. If I use the basic configuration without any mappings, things work well. But as soon as I add mappings for ec and ea, all Tags are fired with the same Tag ID.
Setup:
- 3 Bing (UET) Tags with their different IDs
- several Set Data Extensions to populate ec and ea on different conditions
- ec and ea is mapped to all three Tags
There seems to be no distinct order which Tag ID is used. Sometimes all three Tags are fired with the ID of Tag 1, sometimes it's ID 2 or 3.
Any ideas on how to fix this problem?
Cheers
Torben
@tgepp The Bing tag uses a global array for custom event tracking. When you add multiple instances of the tag to the same page they all end up sharing the same global array, which is why you are seeing that behavior. You can see the reason for this here, where window.uetq
is the global variable used:
How to report custom events with UET
<script>
window.uetq = window.uetq || [];
window.uetq.push
({ 'ec':'Event category', 'ea':'Event action', 'el':'Event label', 'ev':'Event value' });
</script>
It looks like Bing allows you to override the name of this global variable, which would allow you to create multiple instances of the tag on a single page without sharing event data. This logic would have to be changed within the tag template itself. You can create a Support Desk ticket to get help with this if needed.
More info:
Bing - Override UET tag tracking code
Copyright All Rights Reserved © 2008-2023