Sha256: a9b90cc96bf711513b1cc86cff80921d053365d968ce4fd159968551c9e22b37
Contents?: true
Size: 766 Bytes
Versions: 1
Compression:
Stored size: 766 Bytes
Contents
module Analytical module Hubspot class Api include Analytical::Base::Api def initialize(parent, options={}) super @tracking_command_location = :body_append end def init_javascript(location) return '' unless location==:body_append js = <<-HTML <!-- Analytical Init: Hubspot --> <script type="text/javascript" language="javascript"> var hs_portalid=#{options[:portal_id]}; var hs_salog_version = "2.00"; var hs_ppa = "options[:domain]"; document.write(unescape("%3Cscript src='" + document.location.protocol + "//" + hs_ppa + "/salog.js.aspx' type='text/javascript'%3E%3C/script%3E")); </script> HTML js end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
analytical-0.12.0 | lib/analytical/hubspot.rb |