Skip to content

Commit ccdf2bf

Browse files
authored
use GTM and GA analytics (#129)
* Update _config.yml * Update head_custom.html
1 parent a9878c9 commit ccdf2bf

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: FalkorDB Docs
33
description: The FalkorDB documentation
44
logo: "/images/falkor-logo.png"
55
favicon_ico: "/images/favicon.ico"
6-
ga_tracking: GTM-MBWB627H
6+
gtm_tracking: GTM-MBWB627H
77

88
search_enabled: true
99
color_scheme: dark

_includes/head_custom.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,12 @@
22
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.10.0/highlight.min.js"></script>
33
<script>hljs.highlightAll();</script>
44

5+
{% if site.gtm_tracking != nil %}
6+
<!-- Google Tag Manager -->
7+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
8+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
9+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
10+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
11+
})(window,document,'script','dataLayer','{{ site.gtm_tracking }}');</script>
12+
<!-- End Google Tag Manager -->
13+
{% endif %}

0 commit comments

Comments
 (0)