HCL Commerce Version 9.1.4.0 or later

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:
  1. Rename the downloaded Service Account Credentials JSON file to googleAnalyticsServiceAccount.json.
  2. 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
    
  3. 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:
  1. Rename the downloaded Service Account Credentials JSON file to googleAnalyticsServiceAccount.json.
  2. Copy googleAnalyticsServiceAccount.json to <WCDE_Dir>/setup/googleAnalytics/googleAnalyticsServiceAccount.json.