Browse Source

Make google-analytics configurable, fix #790

pull/862/head
Hironsan 4 years ago
parent
commit
14e1d4b52a
3 changed files with 9 additions and 1 deletions
  1. 6
      README.md
  2. 2
      docker-compose.prod.yml
  3. 2
      frontend/nuxt.config.js

6
README.md

@ -65,6 +65,12 @@ ADMIN_USERNAME: "admin"
ADMIN_PASSWORD: "password"
```
If you use Google Analytics, set the tracking:
```yml
GOOGLE_TRACKING_ID: "UA-12345678-1"
```
Run doccano:
```bash

2
docker-compose.prod.yml

@ -23,6 +23,8 @@ services:
build: ./frontend
volumes:
- www:/app/dist
environment:
GOOGLE_TRACKING_ID: ""
nginx:
build: ./nginx

2
frontend/nuxt.config.js

@ -63,7 +63,7 @@ export default {
buildModules: [
['@nuxtjs/google-analytics', {
id: 'UA-125643874-2'
id: process.env.GOOGLE_TRACKING_ID
}]
],
/*

Loading…
Cancel
Save