Class: InBedWith::Gauges

Inherits:
Base
  • Object
show all
Defined in:
lib/in_bed_with/gauges.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, module_attr, register

Constructor Details

This class inherits a constructor from InBedWith::Base

Instance Method Details

#codeObject



5
6
7
# File 'lib/in_bed_with/gauges.rb', line 5

def code
  "<script type=\"text/javascript\">var _gauges = _gauges || []; (function() { var t = document.createElement('script'); t.type = 'text/javascript'; t.async = true; t.id = 'gauges-tracker'; t.setAttribute('data-site-id', '#{site_id}'); t.src = '//secure.gaug.es/track.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(t, s); })();</script>"
end