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

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -