Created
March 27, 2017 19:28
-
-
Save Miserlou/5f81770d1576ca1f49d8a9119b7ca3c4 to your computer and use it in GitHub Desktop.
Drift JS
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
<!-- Start of Async Drift Code --> | |
<script> | |
var YOUR_CODE = 'BLAH_BLAH_BLAH'; | |
!function() { | |
var t; | |
if (t = window.driftt = window.drift = window.driftt || [], !t.init) return t.invoked ? 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; | |
return n = Array.prototype.slice.call(arguments), n.unshift(e), t.push(n), t; | |
}; | |
}, t.methods.forEach(function(e) { | |
t[e] = t.factory(e); | |
}), t.load = function(t) { | |
var e, n, o, i; | |
e = 3e5, i = Math.ceil(new Date() / e) * e, o = document.createElement("script"), | |
o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous", o.src = "https://js.driftt.com/include/" + i + "/" + t + ".js", | |
n = document.getElementsByTagName("script")[0], n.parentNode.insertBefore(o, n); | |
}); | |
}(); | |
drift.SNIPPET_VERSION = '0.3.1'; | |
drift.load(YOUR_CODE); | |
</script> | |
<!-- End of Async Drift Code --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment