diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 56f4b4891..93fcd6333 100755 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -78,6 +78,5 @@ module.exports = { plugins: [ path.resolve(__dirname, './src/gitter-chat'), path.resolve(__dirname, './src/github-stars'), - path.resolve(__dirname, './src/hotjar'), ], }; diff --git a/docs/now.json b/docs/now.json index cbde4ee92..4f3ae0662 100644 --- a/docs/now.json +++ b/docs/now.json @@ -1,8 +1,7 @@ { "build": { "env": { - "ALGOLIA_API_KEY": "@algolia_api_key", - "HOTJAR_ID": "@hotjar_id" + "ALGOLIA_API_KEY": "@algolia_api_key" } } } diff --git a/docs/src/hotjar/index.js b/docs/src/hotjar/index.js deleted file mode 100644 index 06d42fcd0..000000000 --- a/docs/src/hotjar/index.js +++ /dev/null @@ -1,27 +0,0 @@ -module.exports = function() { - if (!process.env.HOTJAR_ID) return; - - return { - name: "hotjar", - - injectHtmlTags() { - return { - headTags: [ - { - tagName: "script", - innerHTML: ` - (function(h,o,t,j,a,r){ - h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; - h._hjSettings={hjid:${process.env.HOTJAR_ID},hjsv:6}; - a=o.getElementsByTagName('head')[0]; - r=o.createElement('script');r.async=1; - r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; - a.appendChild(r); - })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');; - ` - } - ] - }; - } - }; -};