Sha256: 3214eb95cc2a1e942267c3d9f7c604076007ed5ce95b7b25ec063928e713e696
Contents?: true
Size: 788 Bytes
Versions: 4
Compression:
Stored size: 788 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) init_location(location) do 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 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
analytical-1.5.0 | lib/analytical/hubspot.rb |
analytical-1.4.0 | lib/analytical/hubspot.rb |
analytical-1.3.0 | lib/analytical/hubspot.rb |
analytical-1.2.0 | lib/analytical/hubspot.rb |