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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
9 additions and
1 deletions
-
README.md
-
docker-compose.prod.yml
-
frontend/nuxt.config.js
|
@ -65,6 +65,12 @@ ADMIN_USERNAME: "admin" |
|
|
ADMIN_PASSWORD: "password" |
|
|
ADMIN_PASSWORD: "password" |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
If you use Google Analytics, set the tracking: |
|
|
|
|
|
|
|
|
|
|
|
```yml |
|
|
|
|
|
GOOGLE_TRACKING_ID: "UA-12345678-1" |
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
Run doccano: |
|
|
Run doccano: |
|
|
|
|
|
|
|
|
```bash |
|
|
```bash |
|
|
|
@ -23,6 +23,8 @@ services: |
|
|
build: ./frontend |
|
|
build: ./frontend |
|
|
volumes: |
|
|
volumes: |
|
|
- www:/app/dist |
|
|
- www:/app/dist |
|
|
|
|
|
environment: |
|
|
|
|
|
GOOGLE_TRACKING_ID: "" |
|
|
|
|
|
|
|
|
nginx: |
|
|
nginx: |
|
|
build: ./nginx |
|
|
build: ./nginx |
|
|
|
@ -63,7 +63,7 @@ export default { |
|
|
|
|
|
|
|
|
buildModules: [ |
|
|
buildModules: [ |
|
|
['@nuxtjs/google-analytics', { |
|
|
['@nuxtjs/google-analytics', { |
|
|
id: 'UA-125643874-2' |
|
|
|
|
|
|
|
|
id: process.env.GOOGLE_TRACKING_ID |
|
|
}] |
|
|
}] |
|
|
], |
|
|
], |
|
|
/* |
|
|
/* |
|
|