Skip to content

Commit

Permalink
Tries adding GTM.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdahis committed Oct 11, 2020
1 parent a7dba5f commit 70925a3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@

{% include head.html %}

{% gtm head %}

<body>

{% include header.html %}

{% gtm body %}

<main class="page-content" aria-label="Content">
<div class="wrapper">
Expand Down

0 comments on commit 70925a3

Please sign in to comment.