Google Analytics API v4 for Android Does NOT Send Screen Views

后端 未结 4 1896
独厮守ぢ
独厮守ぢ 2021-02-05 17:38

I\'ve set all things for google analytics api v4 as it mentioned here:
https://developers.google.com/analytics/devguides/collection/android/v4/
and here:

4条回答
  •  情话喂你
    2021-02-05 18:10

    @tony is right, HitBuilders.AppViewBuilder class is deprecated, but there is no need to implement onStart/Stop methods if you don't want to. As stated on GA's V4 tutorial (section 4), you can replace the AppViewBuilder class by HitBuilders.ScreenViewBuilder() and you'll get the desired result in all platforms.

    See further details on the class reference API here: https://developer.android.com/reference/com/google/android/gms/analytics/HitBuilders.ScreenViewBuilder.html

提交回复
热议问题