diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index ce6581e0..bccf7a55 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -24,10 +24,6 @@ jobs: run: bun install - name: "Deploy target: production 🚀" run: bun run build - # TODO: ask about below - # env: - # RUDDERSTACK_WRITE_KEY: "${{ secrets.RUDDERSTACK_WRITE_KEY }}" - # RUDDERSTACK_DATA_PLANE_URL: "${{ secrets.RUDDERSTACK_DATA_PLANE_URL }}" - uses: matter-labs/action-hosting-deploy@main with: diff --git a/bun.lockb b/bun.lockb index cbb72de5..0a01a6eb 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/nuxt.config.ts b/nuxt.config.ts index fe1a62d9..ff4c320c 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,7 +1,7 @@ // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ extends: [['github:matter-labs/docs-nuxt-template', { install: true }]], - modules: ['@nuxt/content', '@nuxt/ui', '@nuxt/eslint', '@nuxtjs/seo'], + modules: ['@nuxt/content', '@nuxt/ui', '@nuxt/eslint', '@nuxtjs/seo', 'nuxt-gtag'], site: { name: 'Community Code', url: process.env.NUXT_SITE_ENV ? 'https://staging-code.zksync.io' : 'https://code.zksync.io', @@ -29,4 +29,11 @@ export default defineNuxtConfig({ routeRules: { '/api/search.json': { prerender: true }, }, + $production: process.env.NUXT_SITE_ENV + ? {} + : { + gtag: { + id: 'G-QHP3K0NN1M', + }, + }, }); diff --git a/package.json b/package.json index 8ee0b1ad..5b580cd6 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "@nuxtjs/seo": "^2.0.0-rc.10", "dayjs": "^1.11.10", "nuxt": "^3.11.2", + "nuxt-gtag": "^2.0.6", "nuxt-og-image": "^3.0.0-rc.53", "rehype-katex": "^7.0.0", "remark-math": "^6.0.0",