Skip to content

Commit

Permalink
Fix analytics tags
Browse files Browse the repository at this point in the history
  • Loading branch information
uncomplete committed Jan 22, 2023
1 parent 2329d97 commit b953e84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@

{% if site.analytics.google %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id={{site.analytics.google }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{ site.google_analytics }}');
gtag('config', '{{ site.analytics.google }}');
</script>
{% endif %}

{% if site.analytics.cloudflare %}
<!-- Cloudflare Web Analytics -->
<script defer src='https://static.cloudflareinsights.com/beacon.min.js'
data-cf-beacon='{"token": "{{ site.cloudflare_analytics }}"}'></script>
data-cf-beacon='{"token": "{{ site.analytics.cloudflare }}"}'></script>
<!-- End Cloudflare Web Analytics -->
{% endif %}

0 comments on commit b953e84

Please sign in to comment.