-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuzzlead-agradecimento.js
27 lines (26 loc) · 1.19 KB
/
buzzlead-agradecimento.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Track do usuário
!(function (e, t, r, a) {
var s = "https://static.buzzlead.com.br/widget.js";
function c() {
e.fireTrigger(e.blId, e.blEvent);
}
(e.blEvent = "subscribe"), (e.blId = a);
for (var n = !1, i = t.getElementsByTagName("script"), l = i.length; l--; )
i[l].src == s && (n = !0);
if (!n) {
let r = a.split("-")[2];
var o = t.getElementsByTagName("script")[0],
g = t.createElement("script");
(e.campaignId = r), (g.src = s), o.parentNode.insertBefore(g, o);
}
if (e.Tracker) c();
else {
o = t.getElementsByTagName("script")[0];
var p = t.createElement("script");
(p.src = "https://static.buzzlead.com.br/tracker.js"),
(p.onload = c),
o.parentNode.insertBefore(p, o);
}
})(window, document, 0, "BL-630e73c4bc3e051d49be9f47-GG7W");
// Track do patrocinador
!function(e,t,i){function r(){e.fireTrigger(e.blId,e.blEvent)}var n;e.blEvent="subscribe",e.blId=i,e.Tracker?r():(n=t.getElementsByTagName("script")[0],(t=t.createElement("script")).src="https://static.buzzlead.com.br/tracker.js",t.onload=r,n.parentNode.insertBefore(t,n))}(window,document,"BL-630e73c4bc3e051d49be9f47-NN6D");