I use Google Analytics for my application. I use HitBuilder () to get event hits and SocialBuilder () for social button clicks.
Method for Social Button Presses
public void sendGoogleAnalyticsSocialInteractionWithTarget(String SocialNetworkName,String SocialAction,String SocialTarget)
{
dataTracker.send( new HitBuilders.SocialBuilder()
.setNetwork(SocialNetworkName)
.setAction(SocialAction)
.setTarget(SocialTarget)
.build());
}
Method for Hit Events
public void sendGoogleAnalyticsHitEvents(String category,String action,String label)
{
dataTracker.send(new HitBuilders.EventBuilder()
.setCategory(category)
.setAction(action)
.setLabel(label)
.build());
}
With the exception of getting hit information and counting in different categories, is there another goal for different HitBuilders?
source
share