diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-01-22 13:10:14 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-01-22 13:10:14 +0300 |
commit | ba619d5a98dcb86605f850211ab6289d75443416 (patch) | |
tree | 5718b1e8a8dad74376e93975c92654ada7319a61 /_includes/common/ga.html | |
parent | README: update (diff) | |
download | jekyll-theme-ba619d5a98dcb86605f850211ab6289d75443416.tar.gz jekyll-theme-ba619d5a98dcb86605f850211ab6289d75443416.zip |
support Google Analytics
Diffstat (limited to '')
-rw-r--r-- | _includes/common/ga.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/_includes/common/ga.html b/_includes/common/ga.html new file mode 100644 index 0000000..56eaca7 --- /dev/null +++ b/_includes/common/ga.html @@ -0,0 +1,9 @@ +<!-- Global site tag (gtag.js) - Google Analytics --> +<script async src="https://www.googletagmanager.com/gtag/js?id={{ include.ga_tag }}"></script> +<script> + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + + gtag('config', '{{ include.ga_tag }}'); +</script> |