Sha256: 7cecd761e044ea1fc7db2b65a1927e663d08eda7b7e683fb5413046d897d0d64
Contents?: true
Size: 846 Bytes
Versions: 2
Compression:
Stored size: 846 Bytes
Contents
module Analytical module Comscore class Api include Analytical::Base::Api def initialize(parent, options={}) super @tracking_command_location = :head_append end def init_javascript(location) init_location(location) do js = <<-HTML <!-- Analytical Init: comScore --> <script>document.write(unescape("%3Cscript src='" + (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js' %3E%3C/script%3E"));</script> <script>COMSCORE.beacon({c1:2, c2:#{options[:key]}, c3:"", c4:"", c5:"", c6:"", c15:""});</script> <noscript><img src="http://b.scorecardresearch.com/p?c1=2&c2=#{options[:key]}&c3=&c4=&c5=&c6=&c15=&cj=1" /></noscript> HTML js end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
analytical-1.5.0 | lib/analytical/comscore.rb |
analytical-1.4.0 | lib/analytical/comscore.rb |