Get Data for Google Analytics Users Flow Report with API -
google analytics web ui has neat report called "users flow" shows user behavior on website navigate different pages. raw data report understandably not accessible web ui since include many thousands of rows. should available through api however. have read this understand basic framework of how this.
however, results i'm getting these efforts don't match see on site, leads me believe making error somewhere.
exhibit a: 1 particular interaction i'm investigating users navigating home page particular sub-page. interaction popular , therefore visible in web ui. shows following:
home -> page = 9.4k users (doesn't give exact value =/)
however, results when investigating thought api not match. basic method this:
dimensions="ga"landingpagepath,ga:secondpagepath" metrics="ga:sessions"
which gives following result
home -> page = 1,993 users
i same result following query:
dimensions="ga"previouspagepath,ga:pagepath" metrics="ga:sessions"
i can't figure out why these 2 should not return same result, , fear i'm missing obvious. in advance help!
edit
it turns out method using
dimensions="ga:previouspagepath,ga:pagepath"
returns different still incorrect answer of 2,951 users
for arrives here via google, found adequate answer question:
first off, right missing obvious: ga:sessions not right metric use, since sessions measured @ landing page. if use ga:pageviews (recommended) or ga:users, you'll more useful results.
more importantly though, means you'll never able match values see in "users flow" report in google analytics web ui. okay, because report crap =d
Comments
Post a Comment