Skip to content

Commit 92e30ea

Browse files
committed
Add documentation about google analytics ids
1 parent d463683 commit 92e30ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/development.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,3 +358,8 @@ docker-compose run --rm backend nmdc-server shell
358358
```
359359
360360
You can also pass `--print-sql` to output all SQL queries.
361+
362+
## Google Analytics
363+
364+
The frontend Vue app is configured to work with Google Analytics. There are two Google Anlytics "properties" for the NMDC Data Portal. One is for the production site. One is for the dev site as well as local development. Each GA property has its own GA ID associated with it. This ID gets pulled into the view app from an environment variable called `VUE_APP_NMDC_GOOGLE_ANALYTICS_ID`. You can set this inside a `.env` file inside the `web` directory (note this is separate from the `.env` file at the root of the project).
365+

0 commit comments

Comments
 (0)