diff options
author | clarkzjw <[email protected]> | 2020-02-08 21:36:01 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-08 21:36:01 +0800 |
commit | 4b68068138a019dfb854b2de7a1be5472751b454 (patch) | |
tree | bc859af7366476df27f44c219c9746e729e01946 | |
parent | 7945d2c85721198910c9583b31a42d185c93b036 (diff) | |
download | blog.jinwei.me-4b68068138a019dfb854b2de7a1be5472751b454.tar.gz |
add Google Analytics
-rw-r--r-- | _templates/layout.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/_templates/layout.html b/_templates/layout.html index 0d83f1e..fb9a9c2 100644 --- a/_templates/layout.html +++ b/_templates/layout.html | |||
@@ -22,6 +22,15 @@ | |||
22 | <meta name="msapplication-TileColor" content="#ffffff"> | 22 | <meta name="msapplication-TileColor" content="#ffffff"> |
23 | <meta name="msapplication-TileImage" content="/ms-icon-144x144.png"> | 23 | <meta name="msapplication-TileImage" content="/ms-icon-144x144.png"> |
24 | <meta name="theme-color" content="#ffffff"> | 24 | <meta name="theme-color" content="#ffffff"> |
25 | <!-- Global site tag (gtag.js) - Google Analytics --> | ||
26 | <script async src="https://www.googletagmanager.com/gtag/js?id=UA-91737359-11"></script> | ||
27 | <script> | ||
28 | window.dataLayer = window.dataLayer || []; | ||
29 | function gtag(){dataLayer.push(arguments);} | ||
30 | gtag('js', new Date()); | ||
31 | |||
32 | gtag('config', 'UA-91737359-11'); | ||
33 | </script> | ||
25 | 34 | ||
26 | {%- block doctype -%} | 35 | {%- block doctype -%} |
27 | <!DOCTYPE html> | 36 | <!DOCTYPE html> |