diff options
author | Corey Hulen <corey@hulen.com> | 2015-09-23 14:35:26 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-09-23 14:35:26 -0700 |
commit | c7c644874e98db0ae83c5a44ec50ff811d9b3f46 (patch) | |
tree | b51b766a33ad7ec79e96e675ed9d6e7f254bac3a /web/templates | |
parent | b7d819bfcd0369d6b20254cc439904ee37051bcf (diff) | |
parent | a9c4f5efd0c1e6927cdec99a98c661fcc0ef6c89 (diff) | |
download | chat-c7c644874e98db0ae83c5a44ec50ff811d9b3f46.tar.gz chat-c7c644874e98db0ae83c5a44ec50ff811d9b3f46.tar.bz2 chat-c7c644874e98db0ae83c5a44ec50ff811d9b3f46.zip |
Merge pull request #768 from mattermost/segment-fix
fixing segment bug
Diffstat (limited to 'web/templates')
-rw-r--r-- | web/templates/head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/templates/head.html b/web/templates/head.html index a65a28566..2b83119d8 100644 --- a/web/templates/head.html +++ b/web/templates/head.html @@ -53,7 +53,7 @@ <script type="text/javascript"> if (window.config.SegmentDeveloperKey != null && window.config.SegmentDeveloperKey !== "") { !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.0.1"; - analytics.load(window.config.SegmentWriteKey); + analytics.load(window.config.SegmentDeveloperKey); var user = window.UserStore.getCurrentUser(true); if (user) { analytics.identify(user.id, { |