sql - How to Pull Load Speed and Bounce Rate via Bigquery -


i'm trying write query via bigquery google analytics data find out impact of page speed on site. there lot of research talk impact of slow site website on conversions , i'm hoping run similar type of analysis (for example).

currently have below query, looks hit.time increases totals.pageviews. if i'm not mistaken, must mean hits.time registered total time on site , not total time on given page.

select   round(avg(totals.pageviews),0) avg_page_views,   case          when hits.time <= 1000 '0 second'         when hits.time between 1001 , 2000 '1 second'         when hits.time between 2001 , 3000 '2 second'         when hits.time between 3001 , 4000 '3 second'         when hits.time between 4001 , 5000 '4 second'         when hits.time between 5001 , 6000 '5 second'         when hits.time between 6001 , 7000 '6 second'         when hits.time between 7001 , 8000 '7 second'         when hits.time between 8001 , 9000 '8 second'         when hits.time between 9001 , 10000 '9 second'         when hits.time between 10001 , 10000 '10 second'         else 'more 10 seconds'    end hits.time     [session.ga_sessions_20150501]         hits.page.pagepath != ''         , totals.bounces not null         , hits.hitnumber >= 1         , hits.time > 0         , hits.type = 'page'         , hits.page.pagepath '%/work/apps/business/%'   group 1,2 order 1 limit 2000 ; 

any thoughts on how change query pull speed per page can graphed conversions or bounce rate? know data exists in google analytics, can't find dimension use via bigquery api , or in google analytics matter.

thanks in advance!

you totally off here.

hits.time means else:

the number of milliseconds after visitstarttime when hit registered. first hit has hits.time of 0.

so measures time elapsed since visit start time, , not @ loading time. it's request time when initiated, nothing has dom.

afaik there no metric give dom load time.

schema:

https://support.google.com/analytics/answer/3437719?hl=en&ref_topic=3416089&vid=1-635792326108722532-2868285191


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -