Google Analytics Multiple Custom Dimension -


i working on google analytics chart on site , in tracking code want 2 add 2 custom dimension (one user id). doing way, doing right ? ga('create', 'ua-xxxx', {'userid': spuserid}); ga('set', { 'dimension1': spuserid, 'dimension2': jobaidid }); ga('send', 'pageview');

yes, that's correct:

ga('set', {'dimensionx': valuex, 'dimensiony': valuey, 'dimensionz': valuez}); ga('send','pageview'); 

you send them other hits too:

ga('set', {'dimensionx': valuex, 'dimensiony': valuey, 'dimensionz': valuez}); ga('send','event', 'cat', 'action', 'label'); 

Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -