Module: Ratel::Tracking::GoogleAnalytics
- Defined in:
- lib/ratel/tracking/google_analytics.rb
Instance Method Summary collapse
Instance Method Details
#push(*args) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/ratel/tracking/google_analytics.rb', line 5 def push *args = args. s = "_gaq.push(['_trackEvent', '#{[:category]||args[0]}', '#{[:action]||args[1]}', '#{[:label]||args[2]}'" s << ", #{[:value]}" if .key? :value s << ", #{[:noninteraction]}" if .key? :noninteraction s << "]);" s.html_safe end |