开发者

How can I measure the average values of GA custom variables?

I'm intrigued by GA's _trackPageLoadTime method, beca开发者_StackOverflowuse it logs into a table that shows average load time alongside other factors like pageviews, bounce rate, etc (see sweet screenshot).

I want to take it further and do something similar super-simple JS perf — start tracking things like the time window.load calls, the delay before an image loads, the total execution time of an expensive page, etc.

So far, I'm tracking this info in Custom Vars and it all records fine — an example entry would be "Window Load","2.67" — but of course, GA treats them as discrete values, which is useless for actual perf.

Any suggestions? Is there a built-in GA way for viewing my data this way, a third-party method I could try....or would I need to program something through the API (maybe with the Garb Ruby gem) to extract these numbers and make some use out of them?


Google Analytics Events. That's what you're looking for. You can set 3 string parameters and a fourth numeric value. Then you can see the total summed values or the average value.

One thing to notice is that it wont work with float, only integer numbers. So you may want to report milliseconds in that example that you gave.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜