From 70925a3a5ff4ea6ea6bebfbe7c020d1df0349656 Mon Sep 17 00:00:00 2001 From: Ricardo Dahis Date: Sat, 10 Oct 2020 19:33:28 -0700 Subject: [PATCH] Tries adding GTM. --- Gemfile | 1 + _config.yml | 5 +++++ _layouts/default.html | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/Gemfile b/Gemfile index c8ec709..f55dd35 100644 --- a/Gemfile +++ b/Gemfile @@ -21,6 +21,7 @@ gem "minimal-mistakes-jekyll" # If you have any plugins, put them here! group :jekyll_plugins do gem "jekyll-feed" + gem 'jekyll-google-tag-manager' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem diff --git a/_config.yml b/_config.yml index 1d586a9..2f14fe3 100644 --- a/_config.yml +++ b/_config.yml @@ -28,6 +28,11 @@ stackoverflow_username: ricardo-dahis # Google Analytics google_analytics: UA-106568021-1 +# Google Tag Manager +google: + tag_manager: + container_id: GTM-KJ4Q3WT + # Build settings markdown: kramdown theme: minima diff --git a/_layouts/default.html b/_layouts/default.html index 5bd52ed..dcc3b5a 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -5,9 +5,13 @@ {% include head.html %} + {% gtm head %} + {% include header.html %} + + {% gtm body %}