SCRUM-196: Read GA4 key from fulfillr_ga4_credentials_json
Match the vault variable name holding the service-account key file. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
e681a46b78
commit
e174e259eb
@@ -53,13 +53,13 @@
|
||||
"recovery": {
|
||||
"schedule_name": "cart-recovery-prod",
|
||||
"schedule_group": "default"
|
||||
}{%- if fulfillr_ga4_credentials is defined %},
|
||||
}{%- if fulfillr_ga4_credentials_json is defined %},
|
||||
{# GA4 Data API for the portal Traffic & funnel tab (SCRUM-196). Renders only once the
|
||||
service-account key `fulfillr_ga4_credentials` (the key JSON, as a mapping or string)
|
||||
service-account key `fulfillr_ga4_credentials_json` (the key JSON, as a mapping or string)
|
||||
is in the vault; without it the traffic endpoint reports configured:false. #}
|
||||
"analytics": {
|
||||
"ga4_property_id": "{{ fulfillr_ga4_property_id }}",
|
||||
"ga4_credentials": {{ (fulfillr_ga4_credentials if fulfillr_ga4_credentials is mapping else (fulfillr_ga4_credentials | from_json)) | to_json }}
|
||||
"ga4_credentials": {{ (fulfillr_ga4_credentials_json if fulfillr_ga4_credentials_json is mapping else (fulfillr_ga4_credentials_json | from_json)) | to_json }}
|
||||
}
|
||||
{%- endif %}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user