diff --git a/AUTHORS b/AUTHORS index 3a056a9..2430eed 100644 --- a/AUTHORS +++ b/AUTHORS @@ -5,6 +5,7 @@ alphabetical order): - Alexey Bazhin - Andreas Sieferlinger - Antoine Pitrou +- Brent Bandelgar (@brentbb) - Cédric Bosdonnat - Christophe-Marie Duquesne - @datro diff --git a/sigal/settings.py b/sigal/settings.py index a384bd6..416fb91 100644 --- a/sigal/settings.py +++ b/sigal/settings.py @@ -39,6 +39,7 @@ _DEFAULT_CONFIG = { 'destination': '_build', 'files_to_copy': (), 'google_analytics': '', + 'google_tag_manager': '', 'ignore_directories': [], 'ignore_files': [], 'img_processor': 'ResizeToFit', 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..86d8227 100644 --- a/sigal/themes/colorbox/templates/base.html +++ b/sigal/themes/colorbox/templates/base.html @@ -18,8 +18,10 @@ {% endif %} {% endblock %} + {% include 'analytics.html' %}
+ {% include 'gtm.html' %}