From 16598760466a05f4ac4e5e690e3fb0544d081c94 Mon Sep 17 00:00:00 2001 From: "brent.bb" Date: Mon, 26 Sep 2016 22:27:43 -0400 Subject: [PATCH] Add support for Google Tag Manager Add support for Google Tag Manager tracking code into the included themes and the configuration template. --- sigal/templates/sigal.conf.py | 3 +++ sigal/themes/colorbox/templates/base.html | 1 + sigal/themes/default/templates/gtm.html | 11 +++++++++++ sigal/themes/galleria/templates/index.html | 1 + sigal/themes/photoswipe/templates/index.html | 1 + 5 files changed, 17 insertions(+) create mode 100644 sigal/themes/default/templates/gtm.html diff --git a/sigal/templates/sigal.conf.py b/sigal/templates/sigal.conf.py index a733ecc..de39bd0 100644 --- a/sigal/templates/sigal.conf.py +++ b/sigal/templates/sigal.conf.py @@ -171,6 +171,9 @@ ignore_files = [] # Google Analytics tracking code (UA-xxxx-x) # google_analytics = '' +# Google Tag Manager tracking code (GTM-xxxxxx) +# google_tag_manager = '' + # Piwik tracking # tracker_url must not contain trailing slash. # Example : {'tracker_url': 'http://stats.domain.com', 'site_id' : 2} diff --git a/sigal/themes/colorbox/templates/base.html b/sigal/themes/colorbox/templates/base.html index fe9d226..a2cf886 100644 --- a/sigal/themes/colorbox/templates/base.html +++ b/sigal/themes/colorbox/templates/base.html @@ -20,6 +20,7 @@ {% endblock %} + {% include 'gtm.html' %}