diff --git a/Gemfile b/Gemfile index 68c74580..1459d415 100644 --- a/Gemfile +++ b/Gemfile @@ -30,6 +30,7 @@ group :jekyll_plugins do gem 'jekyll-sitemap' gem 'jekyll-toc' gem 'jekyll-redirect-from' + gem 'jekyll-google-tag-manager' end group :development do diff --git a/Gemfile.lock b/Gemfile.lock index b9a3b555..32a6160d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -41,6 +41,8 @@ GEM jekyll (~> 3.3) jekyll-gist (1.5.0) octokit (~> 4.2) + jekyll-google-tag-manager (1.0.1) + jekyll (~> 3.3) jekyll-livereload (0.2.2) em-websocket (~> 0.5) jekyll (~> 3.0) @@ -110,6 +112,7 @@ DEPENDENCIES jekyll-avatar jekyll-feed (~> 0.6) jekyll-gist + jekyll-google-tag-manager jekyll-livereload jekyll-paginate (~> 1.1) jekyll-redirect-from diff --git a/_config.yml b/_config.yml index 4cf0bb7f..1a4bfaba 100644 --- a/_config.yml +++ b/_config.yml @@ -77,6 +77,10 @@ google_analytics: UA-125894815-1 # Google maps API key, get your key here: https://developers.google.com/maps/documentation/javascript/get-api-key google_maps_api_key: +google: + tag_manager: + container_id: GTM-TPGGRT5 + # Number of posts displayed on blog page paginate: 10 diff --git a/_includes/head.html b/_includes/head.html index 1aee7d8c..063759d3 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,4 +1,5 @@ + {% gtm head %} diff --git a/_layouts/default.html b/_layouts/default.html index 83e4a732..30ebc67f 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -4,6 +4,7 @@ {% include head.html %} + {% gtm body %} {% include header.html %}