Sha256: 7846d973a0ef7033db93720549764e0f0606c28e51ae02fafde96c8f154ec462

Contents?: true

Size: 619 Bytes

Versions: 15

Compression:

Stored size: 619 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].to_s[0,4]}/#{options[:key].to_s[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

15 entries across 15 versions & 2 rubygems

Version Path
analytical-3.0.12 lib/analytical/modules/crazy_egg.rb
analytical-3.0.11 lib/analytical/modules/crazy_egg.rb
analytical-3.0.9 lib/analytical/modules/crazy_egg.rb
analytical-3.0.8 lib/analytical/modules/crazy_egg.rb
analytical-3.0.7 lib/analytical/modules/crazy_egg.rb
analytical-3.0.6 lib/analytical/modules/crazy_egg.rb
gsiener-analytical-2.10.2 lib/analytical/modules/crazy_egg.rb
gsiener-analytical-2.10.1 lib/analytical/modules/crazy_egg.rb
analytical-2.11.0 lib/analytical/modules/crazy_egg.rb
analytical-2.10.0 lib/analytical/modules/crazy_egg.rb
gsiener-analytical-2.10.0 lib/analytical/modules/crazy_egg.rb
analytical-2.9.0 lib/analytical/modules/crazy_egg.rb
analytical-2.8.0 lib/analytical/modules/crazy_egg.rb
analytical-2.7.2 lib/analytical/modules/crazy_egg.rb
analytical-2.7.1 lib/analytical/modules/crazy_egg.rb