Sha256: 24ec7cdf5f3fdb9dc618500f9f7a3fe068c272f53f0af797f9764b7e73a25b43
Contents?: true
Size: 772 Bytes
Versions: 13
Compression:
Stored size: 772 Bytes
Contents
module Awestruct module Extensions module GoogleAnalytics def google_analytics() html = '' html += %Q(<script type="text/javascript">\n) html += %Q(var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");\n) html += %Q(document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));\n) html += %Q(</script>\n) html += %Q(<script type="text/javascript">\n) html += %Q(try {\n) html += %Q(var pageTracker = _gat._getTracker("#{site.google_analytics}");\n) html += %Q(pageTracker._trackPageview();\n) html += %Q(} catch(err) {}</script>\n) html end end end end
Version data entries
13 entries across 13 versions & 1 rubygems