feat: add ga

master
JimZhang 2 years ago
parent a594705f7e
commit 277ff6ef6d

@ -43,7 +43,16 @@
<link rel="stylesheet" type="text/css" media="screen" href={{ get_url(path="no-style-please.css") }} /> <link rel="stylesheet" type="text/css" media="screen" href={{ get_url(path="no-style-please.css") }} />
{# GA #}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-ZC0J1L0B11"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-ZC0J1L0B11');
</script>
{% if config.extra.stylesheets %} {% if config.extra.stylesheets %}
{% for stylesheet in config.extra.stylesheets %} {% for stylesheet in config.extra.stylesheets %}

Loading…
Cancel
Save