diff options
| author | Christine Dodrill <me@christine.website> | 2021-01-15 14:10:56 -0500 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2021-01-15 14:10:56 -0500 |
| commit | 1ffc4212d66892c2fdada35421cadce11abcec67 (patch) | |
| tree | a2e42eed84f294755eb63fa88b7231dd6d69af90 | |
| parent | 811995223c3047b345c69486a4a8db6640de3dfa (diff) | |
| download | xesite-1ffc4212d66892c2fdada35421cadce11abcec67.tar.xz xesite-1ffc4212d66892c2fdada35421cadce11abcec67.zip | |
actually use google analytics
Signed-off-by: Christine Dodrill <me@christine.website>
| -rw-r--r-- | templates/header.rs.html | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/templates/header.rs.html b/templates/header.rs.html index 0ad1a91..2f98e1e 100644 --- a/templates/header.rs.html +++ b/templates/header.rs.html @@ -5,13 +5,15 @@ <!DOCTYPE html> <html lang="en"> <head> - <!-- Google Tag Manager --> - <script>(function(w,d,s,l,i)@{w[l]=w[l]||[];w[l].push(@{'gtm.start': - new Date().getTime(),event:'gtm.js'@});var f=d.getElementsByTagName(s)[0], - j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= - 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); - @})(window,document,'script','dataLayer','GTM-WLWJSHT');</script> - <!-- End Google Tag Manager --> +<!-- Global site tag (gtag.js) - Google Analytics --> +<script async src="https://www.googletagmanager.com/gtag/js?id=G-XLJX94YGBV"></script> +<script> + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + + gtag('config', 'G-XLJX94YGBV'); +</script> @if title.is_some() { <title>@title.unwrap() - Christine Dodrill</title> } else { @@ -53,10 +55,6 @@ } </head> <body class="snow hack gruvbox-dark"> - <!-- Google Tag Manager (noscript) --> - <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WLWJSHT" - height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> - <!-- End Google Tag Manager (noscript) --> <div class="container"> <header> <p><a href="/">Christine Dodrill</a> - <a href="/blog">Blog</a> - <a href="/contact">Contact</a> - <a href="/gallery">Gallery</a> - <a href="/resume">Resume</a> - <a href="/talks">Talks</a> - <a href="/signalboost">Signal Boost</a> - <a href="/feeds">Feeds</a> | <a target="_blank" rel="noopener noreferrer" href="https://graphviz.christine.website">GraphViz</a> - <a target="_blank" rel="noopener noreferrer" href="https://when-then-zen.christine.website/">When Then Zen</a></p> |
