Skip to content

Commit

Permalink
add option to populate google_analytics_4_id value (#249)
Browse files Browse the repository at this point in the history
Co-authored-by: Ishan Jain <[email protected]>
  • Loading branch information
copolycube and ishanjainn authored Oct 19, 2024
1 parent 27a40a5 commit 8709543
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/grafana/templates/grafana.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ reporting_enabled = "{{ grafana_analytics.reporting_enabled | default(True) }}"
google_analytics_ua_id = "{{ grafana_analytics.google_analytics_ua_id }}"
{% endif %}

{% if grafana_analytics.google_analytics_4_id is defined and grafana_analytics.google_analytics_4_id != '' %}
google_analytics_4_id = "{{ grafana_analytics.google_analytics_4_id }}"
{% endif %}

# Dashboards
[dashboards]
versions_to_keep = 20
Expand Down

0 comments on commit 8709543

Please sign in to comment.