Sha256: 037f22b1fe19fb892c04847f03e3c6bf2641e7c00d703e52b4cfb1ef04924569

Contents?: true

Size: 880 Bytes

Versions: 16

Compression:

Stored size: 880 Bytes

Contents

module Analytical
  module Modules
    class Loopfuse
      include Analytical::Modules::Base

      def initialize(options={})
        super
        @tracking_command_location = :body_append
      end

      def init_javascript(location)
        init_location(location) do
          js = <<-HTML
          <!-- Analytical Init: LOOPFUSE TRACKING -->
          <script type="text/javascript">
          var LFHost = (("https:" == document.location.protocol) ? "https://" : "http://");
          document.write(unescape("%3Cscript src='" + LFHost + "lfov.net/webrecorder/js/listen.js' type='text/javascript'%3E%3C/script%3E"));
          </script>
          <script type="text/javascript">
          _lf_cid = "#{options[:cid]}";
          _lf_remora();
          </script>
      		<!-- END: LOOPFUSE TRACKING -->
          HTML
          js
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

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