Skip to content

Commit

Permalink
Analytics: use YAML list for GA IDs (#1544)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Jul 12, 2022
1 parent 6526a2f commit 3d8a59e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ params:
github_repo: https://github.com/open-telemetry/opentelemetry.io
github_branch: main
gcs_engine_id: bde3d634eca9cd335
googleAnalytics: "G-QZHM7YEG07, UA-154693307-1"
googleAnalytics: [G-QZHM7YEG07, UA-154693307-1]

ui:
footer_about_disable: true
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/google-analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{{ with .Site.Params.GoogleAnalytics -}}

{{ $ga_ids := split . ", " -}}
{{ $ga_ids := . -}}

<script async src="https://www.googletagmanager.com/gtag/js?id={{ index $ga_ids 0 }}"></script>
<script>
Expand Down

0 comments on commit 3d8a59e

Please sign in to comment.