lib/analytical/console.rb in analytical-1.1.0 vs lib/analytical/console.rb in analytical-1.1.1
- old
+ new
@@ -3,14 +3,14 @@
class Api
include Analytical::Base::Api
def initialize(parent, options={})
super
- @tracking_command_location = :head
+ @tracking_command_location = :body_append
end
def init_javascript(location)
- return '' unless location==:head
+ return '' unless init_location?(location)
js = <<-HTML
<!-- Analytical Init: Console -->
<script type="text/javascript">
console.log('Analytical Init: Console');
</script>
\ No newline at end of file