mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-24 02:17:00 +08:00
Update GA
This commit is contained in:
parent
2ec17b215f
commit
b8685adee4
1 changed files with 10 additions and 7 deletions
|
|
@ -3,13 +3,16 @@
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
{% if site.google_analytics %}
|
{% if site.google_analytics %}
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
<script>
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-118604063-2"></script>
|
||||||
window.dataLayer = window.dataLayer || [];
|
<script>
|
||||||
function gtag(){dataLayer.push(arguments);}
|
window.dataLayer = window.dataLayer || [];
|
||||||
gtag('js', new Date());
|
function gtag(){dataLayer.push(arguments);}
|
||||||
gtag('config', '{{ site.google_analytics }}');
|
gtag('js', new Date());
|
||||||
</script>
|
|
||||||
|
gtag('config', 'UA-118604063-2');
|
||||||
|
</script>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue