Skip to content

Open source personal finance application

remove Metrica from repo

ilkomeef56ce19247e
diff --git a/components/Metrica.vue b/components/Metrica.vue
deleted file mode 100644
index 784dbfc4..00000000
--- a/components/Metrica.vue
+++ /dev/null
@@ -1,37 +0,0 @@
-<script>
-export default {
- name: 'Metrica',
-
- mounted () {
- (function(h,o,t,j,a,r){
- h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
- h._hjSettings={hjid:1947029,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=');
- }
-}
-</script>
-
-<template lang="html">
- <div>
- <client-only>
- <!-- Yandex.Metrika counter -->
- <script type="text/javascript">
- (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
- m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
- (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
-
- ym(49428823, "init", {
- clickmap:true,
- trackLinks:true,
- accurateTrackBounce:true
- });
- </script>
- <noscript><div><img src="https://mc.yandex.ru/watch/49428823" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
- <!-- /Yandex.Metrika counter -->
- </client-only>
- </div>
-</template>
diff --git a/layouts/default.vue b/layouts/default.vue
index 069dbc3e..eed1f83e 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -33,10 +33,6 @@ export default {
computed: {
layoutStyles () {
return { height: `${this.$store.state.ui.height}px` }
- },
-
- isProduction () {
- return process.env.NODE_ENV === 'production'
}
},
@@ -87,8 +83,6 @@ export default {
v-if="isShowUpdateApp"
@onClose="isShowUpdateApp = false"
)
-
- LazyMetrica(v-if="isProduction")
</template>
<style lang="stylus">