update ga id setting

This commit is contained in:
ZhgChgLiBot 2025-03-22 22:01:06 +08:00
parent d5bd16cb26
commit 3e5b3f4dc5

View File

@ -78,13 +78,13 @@
<script src="fontawesome/js/all.js" data-auto-replace-svg="nest"></script>
{% if google_analytics_id %}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-S7G4LWWHH8"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id={{ google_analytics_id }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-S7G4LWWHH8');
gtag('config', '{{ google_analytics_id }}');
</script>
{% endif %}
<script src="./scripts.js"></script>