Adding the Service Account Credentials JSON to the Transaction Server
When you complete the configurations for the Google API Console, you download the Service Account Credentials JSON file. You must include this file in a specific location on the Transaction Server Docker container.
Runtime environment
Complete the following steps to include the Service Account Credentials JSON in the
Transaction Server in the Runtime Docker Image:
- Rename the downloaded Service Account Credentials JSON file to googleAnalyticsServiceAccount.json.
- In your transaction server app Dockerfile, copy
googleAnalyticsServiceAccount.json to
/SETUP/googleAnalytics/googleAnalyticsServiceAccount.json
For example:
FROM docker-repo/commerce/ts-app:tag COPY googleAnalyticsServiceAccount.json /SETUP/googleAnalytics/googleAnalyticsServiceAccount.json
- Build the customized Docker image by running the following command:
docker build . -t docker-repo/commerce/ts-app:cus
Development environment
Complete the following steps to include the Service Account Credentials JSON in the
Transaction Server in the development environment:
- Rename the downloaded Service Account Credentials JSON file to googleAnalyticsServiceAccount.json.
- Copy googleAnalyticsServiceAccount.json to <WCDE_Dir>/setup/googleAnalytics/googleAnalyticsServiceAccount.json.