mirror of
https://github.com/thangisme/notes.git
synced 2024-12-22 03:46:38 -05:00
Use analytics.js instead of tag manager
This commit is contained in:
parent
f5d6cf6222
commit
aee6d1fb8c
@ -9,15 +9,12 @@
|
|||||||
<link rel="stylesheet" href="{{ "/assets/css/just-the-docs.css" | absolute_url }}">
|
<link rel="stylesheet" href="{{ "/assets/css/just-the-docs.css" | absolute_url }}">
|
||||||
|
|
||||||
{% if site.ga_tracking != nil %}
|
{% if site.ga_tracking != nil %}
|
||||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-2709176-10"></script>
|
|
||||||
<script>
|
<script>
|
||||||
window.dataLayer = window.dataLayer || [];
|
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
||||||
function gtag(){dataLayer.push(arguments);}
|
ga('create', '{{ site.ga_tracking }}', '{{ site.url }}');
|
||||||
gtag('js', new Date());
|
ga('send', 'pageview');
|
||||||
|
|
||||||
gtag('config', '{{ site.ga_tracking }}');
|
|
||||||
</script>
|
</script>
|
||||||
|
<script async src="https://www.google-analytics.com/analytics.js"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.search_enabled != nil %}
|
{% if site.search_enabled != nil %}
|
||||||
|
Loading…
Reference in New Issue
Block a user