Module: Garails::MobileHelper
- Defined in:
- app/helpers/garails/mobile_helper.rb
Instance Method Summary collapse
Instance Method Details
#utm_path ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'app/helpers/garails/mobile_helper.rb', line 7 def utm_path referer = request.env['HTTP_REFERER'] url_for :controller => 'garails/google_analytics', :action => 'utm', :format => :gif, :utmn => rand(0x7fffffff).to_s, :utmr => referer.blank? ? "-" : referer, :utmp => request.env['REQUEST_URI'], :guid => "ON" end |
#utm_tag ⇒ Object
3 4 5 |
# File 'app/helpers/garails/mobile_helper.rb', line 3 def utm_tag tag "img", :src => utm_path, :alt => "", :width => "1", :height => "1" end |