Sha256: 0e29668695b5fb979c333097f18fc8722ef8c79726802a987c748542a822bdce
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
<!-- Google Tag Manager --> {% if site.google-tag_key == "Google Tag Manager key goes here" or site.google-tag_key == nil or site.google-tag_key == '' %}<!-- ========================================================================================= YOU NEED TO PUT THE GOOGLE TAG KEY IN THE _config.yml FILE FOR THE <script> TO SHOW UP HERE! ============================================================================================ -->{% endif %} {% if site.google-tag_key != "Google Tag Manager key goes here" and site.google-tag_key != nil %} <script> (function(w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', '{{ site.google-tag_key }}'); </script> {% endif %} <!-- End Google Tag Manager -->
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kcc-gem-theme-0.7.3 | _includes/scripts/google-tag.html |
kcc-gem-theme-0.7.2 | _includes/scripts/google-tag.html |
kcc-gem-theme-0.7.1 | _includes/scripts/google-tag.html |