diff --git a/layer/Service.ts b/layer/Service.ts index 0469c63c..f92f1dac 100644 --- a/layer/Service.ts +++ b/layer/Service.ts @@ -73,7 +73,7 @@ export const tokenService = new TokenService({ chainId: CHAIN_ID, network: NETWORK }) -export const tokenPrice = new TokenPrice({ +export const tokenPrice = new TokenPrice(NETWORK,{ apiKey: COINGECKO_KEY as string, baseUrl: COINGECKO_KEY ? 'https://pro-api.coingecko.com/api/v3' diff --git a/layer/plugins/tracking.ts b/layer/plugins/tracking.ts index a0695111..6ce99356 100644 --- a/layer/plugins/tracking.ts +++ b/layer/plugins/tracking.ts @@ -1,7 +1,7 @@ import VueGtag from 'vue-gtag' -// import hotjar from 'vue-hotjar' +import hotjar from 'vue-hotjar' import { defineNuxtPlugin } from '#imports' -import { GOOGLE_ANALYTICS_KEY } from './../utils/constant' +import { HOTJAR_KEY, GOOGLE_ANALYTICS_KEY } from './../utils/constant' export default defineNuxtPlugin((nuxtApp) => { if (GOOGLE_ANALYTICS_KEY) { @@ -12,9 +12,9 @@ export default defineNuxtPlugin((nuxtApp) => { }) } - // if (HOTJAR_KEY) { - // nuxtApp.vueApp.use(hotjar as any, { - // id: HOTJAR_KEY - // }) - // } + if (HOTJAR_KEY) { + nuxtApp.vueApp.use(hotjar as any, { + id: HOTJAR_KEY + }) + } })