Browse Source

Merge pull request #862 from doccano/fix/make-google-analytics-configurable

Make google-analytics configurable, fix #790
pull/863/head
Hiroki Nakayama 4 years ago
committed by GitHub
parent
commit
dbbf6d65b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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