Skip to content

Commit

Permalink
PR feedback: use the correct variable name analyticsTrackingId
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 25, 2024
1 parent 7831179 commit f6dcafa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/material/themes/material/default/header.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

{% if not (analyticsTrackingId ?? null) is empty %}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ trackingId }}"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id={{ analyticsTrackingId }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ trackingId }}');
gtag('config', '{{ analyticsTrackingId }}');
</script>
{% endif %}

Expand Down

0 comments on commit f6dcafa

Please sign in to comment.