This file contains hidden or 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
| <script> | |
| "use strict"; | |
| !function() { | |
| //*** Hide the Drift widget with styling | |
| var style = document.createElement('style'); | |
| style.id = 'drift-anti-flicker'; | |
| style.innerHTML = '.drift-frame-controller { visibility: hidden !important;}'; | |
| document.head.appendChild(style); |
This file contains hidden or 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
| //variant A: Drift will not pop open the full chat window, hook message is automatically dismissed | |
| "use strict"; | |
| !function () { | |
| var t = window.driftt = window.drift = window.driftt || []; | |
| if (!t.init) { | |
| if (t.invoked) | |
| return void (window.console && console.error && console.error("Drift snippet included twice.")); | |
| t.invoked = !0, | |
| t.methods = ["identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on"], |
This file contains hidden or 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
| <script> | |
| "use strict"; | |
| // Install Drift normally: Insert your Drift installation code here | |
| ! function () { | |
| var t = window.driftt = window.drift = window.driftt || []; | |
| if (!t.init) { | |
| if (t.invoked) return void (window.console && console.error && console.error("Drift snippet included twice.")); | |
| t.invoked = !0, t.methods = ["identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on"], | |
| t.factory = function (e) { | |
| return function () { |
This file contains hidden or 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
| <script> | |
| //**** Standard Drift install snippet **** | |
| !function () { | |
| var a = window.driftt = window.drift = window.driftt || []; | |
| if (!a.init) { | |
| if (a.invoked) return void (window.console && console.error && console.error("Drift snippet included twice.")); | |
| a.invoked = !0; a.methods = "identify config track reset debug show ping page hide off on".split(" "); a.factory = function (c) { return function () { var b = Array.prototype.slice.call(arguments); return b.unshift(c), a.push(b), a } }; a.methods.forEach(function (c) { a[c] = a.factory(c) }); a.load = function (c) { | |
| var b = 3E5, d = Math.ceil(new Date / b) * b; b = | |
| document.createElement("script"); b.type = "text/javascript"; b.async = !0; b.crossorigin = "anonymous"; b.src = "https://js.driftt.com/include/" + d + "/" + c + ".js"; c = document.getElementsByTagName("script")[0]; c.parentNode.insertBefore(b, c) |
This file contains hidden or 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
| "use strict"; | |
| !function () { | |
| var t = window.driftt = window.drift = window.driftt || []; | |
| if (!t.init) { | |
| if (t.invoked) return void (window.console && console.error && console.error("Drift snippet included twice.")); | |
| t.invoked = !0, t.methods = ["identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on"], | |
| t.factory = function (e) { | |
| return function () { | |
| var n = Array.prototype.slice.call(arguments); |
This file contains hidden or 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
| <!-- Start of Async Drift Code --> | |
| <script> | |
| "use strict"; | |
| !function() { | |
| var t = window.driftt = window.drift = window.driftt || []; | |
| if (!t.init) { | |
| if (t.invoked) return void (window.console && console.error && console.error("Drift snippet included twice.")); | |
| t.invoked = !0, t.methods = [ "identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on" ], | |
| t.factory = function(e) { |
This file contains hidden or 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
| <!-- Start of Async Drift Code --> | |
| <script> | |
| "use strict"; | |
| !function() { | |
| var t = window.driftt = window.drift = window.driftt || []; | |
| if (!t.init) { | |
| if (t.invoked) return void (window.console && console.error && console.error("Drift snippet included twice.")); | |
| t.invoked = !0, t.methods = [ "identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on" ], | |
| t.factory = function(e) { |
This file contains hidden or 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
| //for Welcome message interactions ONLY | |
| const newConversation = '{ | |
| "orgId": 5000883, | |
| "type": "new_conversation", | |
| "data": { | |
| "status": "open", | |
| "contactId": 21574003720, | |
| "createdAt": 1712764936172, | |
| "id": 3962405310, | |
| "relatedPlaybookId": 2750462, |
This file contains hidden or 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
| <script> | |
| window.addEventListener('load', async (event) => { | |
| console.log("window loaded"); | |
| loadDrift(); | |
| let continueLooping = true; | |
| while (continueLooping) { | |
| if (embedded_svc) { | |
| embedded_svc.hideHelpButton(); | |
| continueLooping = false; | |
| } |
This file contains hidden or 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
| <script> | |
| window.addEventListener('load', (event) => { | |
| setTimeout(() => { | |
| window.embedded_svc ? embedded_svc.hideHelpButton() : null; | |
| loadDrift(); | |
| console.log("Loading Drift after timeout."); | |
| }, 2500); | |
| }); |
NewerOlder