Browse files

Quick & dirty addition of referrer to page_view_params

  • Loading branch information...
1 parent bab2d56 commit e599c21bcf048ede02512b46edb4d828b651314d @marcusmateus committed Mar 19, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/gabba/gabba.rb
View
6 lib/gabba/gabba.rb
@@ -15,7 +15,8 @@ class Gabba
BEACON_PATH = "/__utm.gif"
USER_AGENT = "Gabba #{VERSION} Agent"
- attr_accessor :utmwv, :utmn, :utmhn, :utmcs, :utmul, :utmdt, :utmp, :utmac, :utmt, :utmcc, :user_agent
+ attr_accessor :utmwv, :utmn, :utmhn, :utmcs, :utmul, :utmdt, :utmp
+ attr_accessor :utmac, :utmt, :utmcc, :user_agent, :utmr
def initialize(ga_acct, domain, agent = Gabba::USER_AGENT)
@utmwv = "4.4sh" # GA version
@@ -42,6 +43,7 @@ def page_view_params(title, page, utmhid = random_id)
:utmhn => @utmhn,
:utmcs => @utmcs,
:utmul => @utmul,
+ :utmr => @utmr,
:utmdt => title,
:utmhid => utmhid,
:utmp => page,
@@ -173,4 +175,4 @@ def random_id
end # Gabba Class
-end
+end

0 comments on commit e599c21

Please sign in to comment.