How to extract engagement flow data using google analytics reporting api

人走茶凉 提交于 2019-12-11 19:18:33

问题


I am building an Android app that uses Google Analytics to record various Events and Screens throughout the app. The Engagement Flow dashboard is quite striking but I'd like to export the data and play with it on my own. How can I write my app so that I can extract the data that is used in the Engagement Flow dashboard using the Google Core Reporting API?

Currently, I am using sendEvent and sendView to track Events and Screens respectively in the Engagement Flow. I'm guessing my approach is working because the report works correctly in the Google Analytics UI, but I can't get the data out using the Core Reporting API for Android. I am fairly confident this is doable because I've been able to access the data using the query explorer for our website with the ga:previousPagePath and ga:pagePath dimensions (see screenshot below), but the same thing does not work for the Android SDK. I can get some data out using an undocumented ga:screenName dimension, but the corresponding ga:previousScreenName (and any permutation thereof) does not exist. Thoughts?

For what its worth, others have had similar questions in case its useful:

  • How to get “Visitors Flow” data from Google Analytics GAPI API?
  • Get Google Analytics "Visitors Flow" data from API

回答1:


According to Google-Analytics, as of now this feature is not available.



来源:https://stackoverflow.com/questions/16553782/how-to-extract-engagement-flow-data-using-google-analytics-reporting-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!