I want to integrate AppSpeed Parameter in my Android Application, for that I have used the following code:
Tracker t = ((AnalyticsSampleApp) getActivity().getApplication()).getTracker(
TrackerName.APP_TRACKER);
// Build and send timing.
t.send(new HitBuilders.TimingBuilder()
.setCategory(getTimingCategory())
.setValue(getTimingInterval())
.setVariable(getTimingName())
.setLabel(getTimingLabel())
.build());
and called the above sendmethod with appropriate methods, but App Speed section of my portal is still blank. How it will show the data ??
Thanks
用这个:
t.sendTiming(loadTime, "resources", "high_scores", null);
To have in mind that the tracks of timing (App speed) sometimes are not refresh immediately like Events and Screenviews in Google Analytics Console. In my case, I had to wait a few hours to see the results. Also check to have in AndroidManifest.xml the following:
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.