Jared 2 年之前
父節點
當前提交
9882e61363
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      themes/hugo-bootstrap-5/layouts/partials/head.html

+ 10 - 0
themes/hugo-bootstrap-5/layouts/partials/head.html

@@ -1,3 +1,13 @@
+<!-- Google tag (gtag.js) -->
+<script async src="https://www.googletagmanager.com/gtag/js?id=G-6BTV174JYX"></script>
+<script>
+  window.dataLayer = window.dataLayer || [];
+  function gtag(){dataLayer.push(arguments);}
+  gtag('js', new Date());
+
+  gtag('config', 'G-6BTV174JYX');
+</script>
+
 <meta charset="utf-8">
 <meta http-equiv="x-ua-compatible" content="ie=edge">
 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">