Google Analytics - Group by custom variable value -
i want track visitors web site. want track them "organization" , "username" in google analytics. want able group users organisation. today have code:
_gaq.push(['_setcustomvar', 1, 'organization', theorganization]); _gaq.push(['_setcustomvar', 1, 'username', theuser]);
note both variables has same "index or slot" (1), means variables listed under same "key" in google analytics app. seems me 1 of values gets set though , makes me think should use different index/slots/keys. (such great thing when names same throughout service , docs)
however, i'm not sure can use data after change slot - cannot find way "group organization" operation. when select "secondary dimension" in reports view cannot find "custom variables" in there.. @ possible?
you need use slot per different key:
_gaq.push(['_setcustomvar', 1, 'organization', theorganization]); _gaq.push(['_setcustomvar', 2, 'username', theuser]);
then filter organization username you'll need make custom report; use custom variable values (not keys)
save report, , can choose relevant organizations in initial filter , you'll see usernames org