How does FlurryAgent.onPageView () work?

I am testing Flurry on a simple Android application that has only one action.

I call FlurryAgent.onPageView(); from the Activity onCreate method.

Is this the right way to count page views?

Also, I cannot find the PageView report http://dev.flurry.com/ , where is it?

Thanks Giacomo

+4
source share
3 answers

first you need to call FlurryAgent.onStartSession(Context, String) . Maybe in onStar() . Then, after that, you can call FlurryAgent.onPageView(); . Just remember that the onCreate event is the first that onStar

0
source

According to the confusing code from the FlurrySDK .jar file, the only thing the onPageView() method does is increase the static counter of int page views. Therefore, I think that @Litux is right about the usage method, BUT, since this field is static, I think it would be nice to use it, for example, to count the number of views of Fragment , especially if you have several Fragments in one Activity .

0
source

How ... "Tracking page views is an optional part of the Flurry SDK that lets you report the number of page views your users have created for tracking ads. Because the page layout is different for each application, the Flurry SDK cannot automatically track them for you. Instead of this, you need to add appropriate integration points to track page views, as they apply to your application. "

If you want to register a specific page / activity / fragment and user paths , you need to use custom events with FlurryAgent.logEvent() , optionally with FlurryAgent.endTimedEvent() .

You can integrate this into Activity / Fragment onResume , onPause .

0
source

All Articles