diff --git a/nuxt.config.js b/nuxt.config.js index a874ec3a73e4c755b7477ee3c80ba9872e2f3300..0d7c720451b662d0c1ece1e1978ddb14cdcd53a1 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -62,6 +62,7 @@ export default { process.env.SHORTEN_URLS_FOR_ENTITY_BROWSERS == null ? true : process.env.SHORTEN_URLS_FOR_ENTITY_BROWSERS === 'true', + GOOGLE_ANALYTICS_ID: process.env.GOOGLE_ANALYTICS_ID || 'hello', }, // Global CSS: https://go.nuxtjs.dev/config-css diff --git a/pages/index.vue b/pages/index.vue index d9efa21b7b9b7ebb87c71733322781214c2d3a98..aa45f7c8f162a1fc15b475139ef72b2ab388cee1 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -18,6 +18,7 @@ an open access chemogenomic library comprising about 5,000 well annotated compounds covering roughly 1,000 different proteins. </p> + <p>GOOGLE_ANALYTICS_ID: {{ analyticsID }}</p> <div class="d-flex justify-space-between flex-wrap align-center"> <div class="buttons-container"> <v-btn depressed color="primary" nuxt to="/compound/browse"> @@ -87,6 +88,9 @@ export default { esProxyBaseUrl() { return process.env.esProxyBaseUrl }, + analyticsID() { + return process.env.GOOGLE_ANALYTICS_ID + }, }, } </script>