From d2c996006f3e3568877c293290f2602452edab69 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Sun, 29 Apr 2012 11:57:52 -0700 Subject: [PATCH] forgot to add _setCustomVar param to _gaq. doh. [ci skip] --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 1281f0cfd..e7e676831 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -43,7 +43,7 @@ module ApplicationHelper # This will *only* fire if analytics are configured (don't panic!) def include_advanced_segments segment = current_user ? current_user.role_name : "unauthenticated" - javascript_tag("if(window._gaq) { _gaq.push([1, 'Role', '#{segment}']) }") + javascript_tag("if(window._gaq) { _gaq.push(['_setCustomVar', 1, 'Role', '#{segment}']) }") end # Require jQuery from CDN if possible, falling back to vendored copy, and require