What is the purpose of creating two different HitBuilders (Social and Event)?

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?

+4
source share
2 answers

Its a way to create a data model for Google Analytics.

, , , , AdWords - . , /, .

+2

, GA , . "".

+2

Source: https://habr.com/ru/post/1570405/


All Articles