Sha256: a1fe29cec89dc46ba9dd31bb5f32c79cdcdf21daa4f01521ca7e5673a789d57d

Contents?: true

Size: 609 Bytes

Versions: 9

Compression:

Stored size: 609 Bytes

Contents

module Analytical
  module Modules
    class CrazyEgg
      include Analytical::Modules::Base

      def initialize(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]}"
          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

9 entries across 9 versions & 1 rubygems

Version Path
analytical-2.7.0 lib/analytical/modules/crazy_egg.rb
analytical-2.6.0 lib/analytical/modules/crazy_egg.rb
analytical-2.5.0 lib/analytical/modules/crazy_egg.rb
analytical-2.4.0 lib/analytical/modules/crazy_egg.rb
analytical-2.3.0 lib/analytical/modules/crazy_egg.rb
analytical-2.2.0 lib/analytical/modules/crazy_egg.rb
analytical-2.1.0 lib/analytical/modules/crazy_egg.rb
analytical-2.0.0 lib/analytical/modules/crazy_egg.rb
analytical-1.9.0 lib/analytical/modules/crazy_egg.rb