Skip to content

Commit

Permalink
remove Drift chat
Browse files Browse the repository at this point in the history
  • Loading branch information
asvae committed Dec 7, 2019
1 parent bef8fa7 commit 0d8a918
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 33 deletions.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
VUE_APP_GTM_KEY=
VUE_APP_DRIFT_KEY=
VUE_APP_GOOGLE_MAPS_API_KEY=

VUE_APP_INCLUDE_DEMOS=
Expand Down
3 changes: 1 addition & 2 deletions docs/pre-production.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
We have a boierplate prepared with some analytics ingrained. This includes:

* [Yandex Metrica](https://metrica.yandex.com/about)
* [Drift](https://www.drift.com/mobile-app/)

To get these running - just provide keys to respective apis. You're advised to copy `.env.example` with rename to `.env` then modify it.

Expand Down Expand Up @@ -45,4 +44,4 @@ You can enable build version, hash commit, and timestamp by build to the main pa
```
VUE_APP_BUILD_VERSION=true
```
This information are excluded by default.
This information are excluded by default.
30 changes: 0 additions & 30 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,6 @@
<title>Vuestic Admin</title>
</head>
<body>

<% if (process.env.NODE_ENV === 'production' && process.env.VUE_APP_DRIFT_KEY) { %>
<script>
/* eslint-disable */
!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.config({
welcomeMessageDelay: 30000
});
drift.SNIPPET_VERSION = '0.3.1';
drift.load('<%= process.env.VUE_APP_DRIFT_KEY %>');
</script>
<% } %>

<div id="app"></div>
<!-- built files will be auto injected -->
</body>
Expand Down

0 comments on commit 0d8a918

Please sign in to comment.