Skip to content

Commit

Permalink
Update analytics.html
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliyi0112 authored Jul 9, 2024
1 parent bd4cea1 commit 155f648
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _includes/analytics.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{% if page.analytics != false %}

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

gtag('config', "{{ site.google_analytics_id }}");
gtag('config', 'G-RZPWCVTVFD');
</script>

{% endif %}
{% endif %}

0 comments on commit 155f648

Please sign in to comment.