// Config var uet_config = {}; uet_config.data = {}; uet_config.accounts = { 'US': '14002647' }; // Account uet_config.thisAccount = uet_config.accounts['US']; // Event distinction if ("") { uet_config.data.action = "landingpage_view"; uet_config.data.category = ""; } else if ("") { uet_config.data.action = ""; uet_config.data.category = "macro_event"; } else if ("") { uet_config.data.action = "login"; uet_config.data.category = "macro_event"; } else { uet_config.data.action = "page_view"; uet_config.data.category = "other_pages"; } uet_config.data.label = ""; // Initialize Bing UET with custom account (function (w, d, t, r, u) { var f, n, i; w[u] = w[u] || [], f = function () { var o = { ti: window.uet_config.thisAccount }; o.q = w[u], w[u] = new UET(o), w[u].push("pageLoad") }, n = d.createElement(t), n.src = r, n.async = 1, n.onload = n.onreadystatechange = function () { var s = this.readyState; s && s !== "loaded" && s !== "complete" || (f(), n.onload = n.onreadystatechange = null) }, i = d.getElementsByTagName(t)[0], i.parentNode.insertBefore(n, i) })(window, document, "script", "//bat.bing.com/bat.js", "uetq"); // Send event window.uetq = window.uetq || []; window.uetq.push('event', uet_config.data.action, { 'event_category': uet_config.data.category, 'event_label': uet_config.data.label });