javascript - Google Analytics and deciphering where the stats came from on a single domain but multiple use application -


got bit of quandary hoping might able with. building touch screen application in html / javascript run on upward of 4 pods (touchscreens). running single domain ... "www.touchscreen.com" (example url) each pod has unique id being passed around grab data, send data etc. know pod being used.

i have programmed in ability every touch / button press captured single ua code within google analytics (analytics.js), combination of normal “pageview” sends , event tracking. through testing works well. however, in real world need ability decipher pod stats came from; podid 1 through 4 in example.

i have tried various thing such as:

ga('set', 'datasource', 'podid1'); 

or changing client id or tracker name per pod doesn't seem want do. guess setup multiple ua codes, 1 each pod, rather have in same pot … able split them if needs buttons presses per pod etc.

how go doing this? correct way post stats single domain know version of , application stats belonged to.

hope makes sense , on above appreciated.

many tom

i use custom dimension track pod number. set on tracker @ create time, , subsequent hits have dimensions, can access in reporting.

you can set custom dimension follows (replace 'xx' dimension id in google analytics admin):

// setting custom dimension @ create time. ga('create', 'ua-xxxxx-y', 'auto', {dimensionxx: podnumber});  // alternatively can update tracker // custom dimension @ time after creating tracker. ga('set', 'dimensionsxx', podnumber); 

more information using custom dimensions analytics.js can found here:
https://developers.google.com/analytics/devguides/collection/analyticsjs/custom-dims-mets


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -