Analytics
Google Analytics
On version 4.5 we migrate from Google Analytics to Firebase Analytics, so so configuration for this included at Section
4. Track custom screen view, event, and exception, you only need to call this method if you want to track, at file data/ThisApplication.java
public void trackScreenView(String screenName) {
. . .
}
public void trackException(Exception e) {
. . .
}
public void trackEvent(String category, String action, String label) {
. . .
}
Example Call - at AcitivityRecipeDetails.java we call track event to detect what user view :
// analytics tracking
ThisApplication.getInstance().trackScreenView("View recipe : "+recipe.name);
Last updated