Sha256: 8634982106b40d90d7ca3107c6128b729d4b823d8ae3dd3a069d5987f0cec849
Contents?: true
Size: 771 Bytes
Versions: 1
Compression:
Stored size: 771 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 init_location?(location) 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-1.1.1 | lib/analytical/hubspot.rb |