No release in over 3 years
Low commit activity in last 3 years
A Jekyll plugin to add Google Tag Manager snippets to your site.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 0.1
~> 1.0
~> 5.0
~> 12.3
~> 0.63
~> 0.16

Runtime

>= 3.3, < 5.0
 Project Readme

Jekyll Google Tag Manager Plugin

A Jekyll plugin to insert Google Tag Manager tags into the head and body of your site.

GitHub Workflow Status Gem Version Code Coverage

Installation

Add the plugin to your site's Gemfile:

group :jekyll_plugins do
  gem 'jekyll-google-tag-manager'
end

And then execute:

$ bundle install

Usage

You must specify a single GTM container in your site's _config.yml.

google:
  tag_manager:
    container_id: GTM-NNNNNNN

Add the following right after the opening of the <head> tag in your site template(s):

{% gtm head %}

Add the following right after the opening of the <body> tag in your site template(s):

{% gtm body %}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/t-richards/jekyll-google-tag-manager.

License

The gem is available as open source under the terms of the MIT License.