Sha256: 2fb7b83c3fbf0237c26b216e3f8047d19a64810d1d34a10308116f9204cb073b
Contents?: true
Size: 663 Bytes
Versions: 4
Compression:
Stored size: 663 Bytes
Contents
module Analytical module CrazyEgg class Api include Analytical::Base::Api def initialize(parent, options={}) super @tracking_command_location = :body_append end def init_javascript(location) init_location(location) do code_url = "#{options[:key][0,4]}/#{options[:key][4,4]}" protocol = options[:ssl] ? 'https' : 'http' js = <<-HTML <!-- Analytical Init: CrazyEgg --> <script type="text/javascript" src="#{protocol}://s3.amazonaws.com/new.cetrk.com/pages/scripts/#{code_url}.js"> </script> HTML js end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
analytical-1.5.0 | lib/analytical/crazy_egg.rb |
analytical-1.4.0 | lib/analytical/crazy_egg.rb |
analytical-1.3.0 | lib/analytical/crazy_egg.rb |
analytical-1.2.0 | lib/analytical/crazy_egg.rb |