javascript - How to send 'custom variables' parameters in Measurement Protocol(GA)? -


i'm develop on html5 project. project news reading html5 site. has offline reading feature, need integration google analzyer user access report.

but found ga js sdk not support offline function.

then try more information on ga site. found measurement protocol can this.

it's said can send ga request through api. stop again on develop process, because need send custom variables js sdk:

_gaq.push(['_setcustomvar', 1, 'user-online', 1, 1]); 

i've checked on ga site not informations "custom variables".

i think this article should of there no more detail sample code explain parameters.

universal analytics (ua) measurement protocol drives. they've changed quite few things. not sure accuracy of other elements of article, correct fact custom dimensions have replaced custom variables in ua https://www.optimizesmart.com/beginners-guide-to-universal-analytics-creating-custom-dimensions-metrics/

head here read custom dimensions https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#cd_


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -