lib/analytical/api.rb in analytical-1.1.1 vs lib/analytical/api.rb in analytical-1.2.0
- old
+ new
@@ -68,10 +68,10 @@
end
def tracking_javascript(location)
commands = []
@modules.each do |name, m|
- commands += m.process_queued_commands if m.tracking_command_location==location
+ commands += m.process_queued_commands if m.init_location?(location) || m.initialized
end
commands = commands.delete_if{|c| c.blank? || c.empty?}
unless commands.empty?
commands.unshift "<script type='text/javascript'>"
commands << "</script>"
\ No newline at end of file