Permalink
Browse files

Merge pull request #32 from ShivaVS/feature/add_utme_to_events_items_…

…page_view

Add custom variable to Events, Items and Page view
  • Loading branch information...
2 parents d53d282 + 2bb267b commit 9138b4b2177aa9c4e78629400061ace0c9eea170 @deadprogram deadprogram committed May 22, 2014
Showing with 6 additions and 3 deletions.
  1. +2 −1 lib/gabba/event.rb
  2. +2 −1 lib/gabba/item.rb
  3. +2 −1 lib/gabba/page_view.rb
View
@@ -38,7 +38,8 @@ def event_params(category, action, label = nil, value = nil, utmni = false, utmh
:utmac => @utmac,
:utmcc => @utmcc || cookie_params,
:utmr => @utmr,
- :utmip => @utmip
+ :utmip => @utmip,
+ :utme => self.custom_var_data
}
end
View
@@ -34,7 +34,8 @@ def item_params(order_id, item_sku, name, category, price, quantity, utmhid)
:utmipr => price,
:utmiqt => quantity,
:utmr => @utmr,
- :utmip => @utmip
+ :utmip => @utmip,
+ :utme => self.custom_var_data
}
end
end
View
@@ -32,7 +32,8 @@ def page_view_params(title, page, utmhid = random_id)
:utmac => @utmac,
:utmcc => @utmcc || cookie_params,
:utmr => @utmr,
- :utmip => @utmip
+ :utmip => @utmip,
+ :utme => self.custom_var_data
}
# Add custom vars if present

0 comments on commit 9138b4b

Please sign in to comment.