Sha256: ea7c152601d55b74197b01098c906ef3198386996034502a7c4253eed5edc24d
Contents?: true
Size: 838 Bytes
Versions: 3
Compression:
Stored size: 838 Bytes
Contents
module Analytical module Comscore class Api include Analytical::Base::Api def initialize(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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
analytical-1.8.0 | lib/analytical/comscore.rb |
analytical-1.7.0 | lib/analytical/comscore.rb |
analytical-1.6.0 | lib/analytical/comscore.rb |