Skip to content

Commit

Permalink
Merge pull request plotly#1236 from plotly/add_drift
Browse files Browse the repository at this point in the history
adding drift
  • Loading branch information
Joseph Damiba authored Jan 16, 2019
2 parents 7eb9bec + 9e76191 commit ce38fe7
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 0 deletions.
49 changes: 49 additions & 0 deletions _includes/drift-tag.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<script id="drift">
!(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);
return n.unshift(e), t.push(n), t;
};
}),
t.methods.forEach(function(e) {
t[e] = t.factory(e);
}),
(t.load = function(t) {
var e = 3e5,
n = 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/" + n + "/" + t + ".js");
var i = document.getElementsByTagName("script")[0];
i.parentNode.insertBefore(o, i);
});
}
})();
drift.SNIPPET_VERSION = "0.3.1";
drift.load("4t5t45cv8ey2");
</script>
2 changes: 2 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

<!-- Google Tags-->
{% include google-tag-head.html %}
{% include drift-tag.html %}


<!-- META TAGS -->
{% include seo.html %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<html>
<head>
{% include google-tag-head.html %}
{% include drift-tag.html %}


{% include seo.html %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<html>
<head>
{% include google-tag-head.html %}
{% include drift-tag.html %}


{% include seo.html %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<html>
<head>
{% include google-tag-head.html %}
{% include drift-tag.html %}


{% include seo.html %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<html>
<head>
{% include google-tag-head.html %}
{% include drift-tag.html %}


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script src="./Layouts » Hero-Thirds/jsapi"></script>
<title>Marketplace KPI Dashboard</title>
Expand Down
2 changes: 2 additions & 0 deletions _posts/ipython-notebooks/credit_risk/credit_risk-R.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<html>
<head>
{% include google-tag-head.html %}
{% include drift-tag.html %}


<meta charset="utf-8" />
<title>credit_risk-R</title>
Expand Down
2 changes: 2 additions & 0 deletions _posts/python/legacy/dashboard/2015-06-30-dashboard-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ <h4 id="Add-a-Box">Add a Box<a class="anchor-link" href="#Add-a-Box">&#194;&#182
<html>
<head>
{% include google-tag-head.html %}
{% include drift-tag.html %}


<style>
body {
Expand Down
2 changes: 2 additions & 0 deletions _posts/python/scientific/alpha-shapes/Plotly-Mesh3d.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<html>
<head>
{% include google-tag-head.html %}
{% include drift-tag.html %}


<meta charset="utf-8" />
<title>Plotly-Mesh3d</title>
Expand Down

0 comments on commit ce38fe7

Please sign in to comment.