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
Post a Comment