lib/orange-more/analytics/middleware/analytics.rb in orange-0.3.9 vs lib/orange-more/analytics/middleware/analytics.rb in orange-0.4.0
- old
+ new
@@ -19,10 +19,10 @@
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>"
- packet[:content] = packet[:content].sub(/.*<\/body>$/, ga + '</body>')
+ packet[:content] = packet[:content].sub(/.*<\/head>$/, ga + '</head>')
end
packet.finish
end
end
\ No newline at end of file