mirror of
https://github.com/yangbvv/yangbvv.github.io.git
synced 2025-12-17 15:25:21 +08:00
Add files via upload
This commit is contained in:
9
_includes/google-analytics.html
Normal file
9
_includes/google-analytics.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
||||
<script>
|
||||
window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){window.dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', '{{ site.google_analytics }}');
|
||||
</script>
|
||||
Reference in New Issue
Block a user