Skip to content

Commit

Permalink
Merge pull request #130 from alphagov/sengi/ga-tag-id
Browse files Browse the repository at this point in the history
Set Google Analytics tag ID for production Find.
  • Loading branch information
sengi authored Feb 15, 2024
2 parents 594f04a + 1f58262 commit a3629ba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/app-of-apps/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ datagovukHelmValues:
find:
replicaCount: 2
args: [ "bin/rails s -b 0.0.0.0 --pid /tmp/rails-server.pid" ]
config:
gaTrackingId: UA-10855508-1
ingress:
host: find.eks.production.govuk.digital
ingressClassName: aws-alb
Expand Down
4 changes: 4 additions & 0 deletions charts/datagovuk/templates/_find.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
- name: RAILS_SERVE_STATIC_FILES
value: "1"
{{- with .Values.find.config }}
{{- with .gaTrackingId }}
- name: GA_TRACKING_ID
value: {{ . }}
{{- end }}
- name: SECRET_KEY_BASE
valueFrom:
secretKeyRef:
Expand Down
1 change: 1 addition & 0 deletions charts/datagovuk/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ find:
annotations:
config:
ckanDomain: "ckan.publishing.service.gov.uk"
gaTrackingId: ""
secretKeyBaseSecretKeyRef:
name: datagovuk
key: secret_key_base
Expand Down

0 comments on commit a3629ba

Please sign in to comment.