lib/analytical/modules/google.rb in analytical-2.7.2 vs lib/analytical/modules/google.rb in analytical-2.8.0

- old
+ new

@@ -12,10 +12,13 @@ init_location(location) do js = <<-HTML <!-- Analytical Init: Google --> <script type="text/javascript"> var _gaq = _gaq || []; - _gaq.push(['_setAccount', '#{options[:key]}'], ['_setDomainName', '#{options[:domain]}'], ['_trackPageview']); + _gaq.push(['_setAccount', '#{options[:key]}']); + _gaq.push(['_setDomainName', '#{options[:domain]}']); + #{"_gaq.push(['_setAllowLinker', true]);" if options[:allow_linker]} + _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 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); })(); \ No newline at end of file