Created
March 6, 2024 09:50
-
-
Save xaif/2a6247fac5c9cbae9480093cc5e5c07b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.powered-by { | |
display: none; | |
} | |
</style> | |
<script> | |
window.ymConfig={ | |
bot:"x1614076579965", | |
payload:{ | |
"url": "{{Page URL}}", | |
"campaignSource": "{{campaignSource_YM}}", | |
"referrer": "{{Referrer}}", | |
"gclid": "{{gclid}}", | |
"prospect_id": "{{prospect_id}}", | |
"campaignTerm": "{{campaignTerm}}", | |
"campaignContent": "{{campaignContent}}", | |
"campaignTeam": "{{campaignTeam}}", | |
"fbclid": "{{fbclid}}", | |
"cname": "{{cname}}", | |
"adset": "{{adset}}" | |
} | |
}; | |
function botScript() { | |
var w = window, | |
ic = w.YellowMessenger; | |
if ("function" === typeof ic){ | |
ic("reattach_activator"); | |
ic("update", ymConfig); | |
} | |
else { | |
var d = document, | |
i = function () { | |
i.c(arguments); | |
}; | |
i.q = []; | |
i.c = function (e) { | |
i.q.push(e); | |
}; | |
w.YellowMessenger = i; | |
if(w.attachEvent) { | |
w.attachEvent("onload", l) | |
} else { | |
window.addEventListener('load', l); | |
w.addEventListener("load", l, !1) | |
} | |
} | |
function l() { | |
var e = d.createElement("script"); | |
e.type = "text/javascript"; | |
e.async = !0; | |
e.src = "https://cdn.yellowmessenger.com/plugin/widget-v2/latest/dist/main.min.js"; | |
var t = d.getElementsByTagName("script")[0]; | |
t.parentNode.insertBefore(e, t); | |
} | |
} | |
botScript(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment