Sha256: 62e7d51f0e32163b5bfcbb2d2d183af1b0e8bef9ef07d1a4a75f6ccf88a00c3a
Contents?: true
Size: 444 Bytes
Versions: 3
Compression:
Stored size: 444 Bytes
Contents
module Garails::MobileHelper def utm_tag tag "img", :src => utm_path, :alt => "", :width => "1", :height => "1" end 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
garails-0.3.0 | app/helpers/garails/mobile_helper.rb |
garails-0.2.0 | app/helpers/garails/mobile_helper.rb |
garails-0.1.4 | app/helpers/garails/mobile_helper.rb |