com.brsanthu.googleanalytics
Class SocialHit

java.lang.Object
  extended by com.brsanthu.googleanalytics.GoogleAnalyticsRequest<SocialHit>
      extended by com.brsanthu.googleanalytics.SocialHit

public class SocialHit
extends GoogleAnalyticsRequest<SocialHit>

GA request to track social interactions

For more information, see GA Parameters Reference

Author:
Santhosh Kumar

Field Summary
 
Fields inherited from class com.brsanthu.googleanalytics.GoogleAnalyticsRequest
customDimentions, customMetrics, parms
 
Constructor Summary
SocialHit()
           
SocialHit(String socialNetwork, String socialAction, String socialTarget)
           
 
Method Summary
 String socialAction()
           
 SocialHit socialAction(String value)
          
 String socialActionTarget()
           
 SocialHit socialActionTarget(String value)
          
 String socialNetwork()
           
 SocialHit socialNetwork(String value)
          
 
Methods inherited from class com.brsanthu.googleanalytics.GoogleAnalyticsRequest
adwordsId, adwordsId, anonymizeIp, anonymizeIp, applicationName, applicationName, applicationVersion, applicationVersion, cacheBuster, cacheBuster, campaignContent, campaignContent, campaignId, campaignId, campaignKeyword, campaignKeyword, campaignMedium, campaignMedium, campaignName, campaignName, campaignSource, campaignSource, clientId, clientId, contentDescription, contentDescription, customDimention, customDimention, customDimentions, customMetric, customMetric, custommMetrics, displayadId, displayadId, documentEncoding, documentEncoding, documentHostName, documentHostName, documentPath, documentPath, documentReferrer, documentReferrer, documentTitle, documentTitle, documentUrl, documentUrl, flashVersion, flashVersion, fromBoolean, fromDouble, fromInteger, getBoolean, getDouble, getInteger, getParameters, getString, hitType, hitType, isEmpty, javaEnabled, javaEnabled, nonInteractionHit, nonInteractionHit, parameter, parameter, protocolVersion, protocolVersion, queueTime, queueTime, screenColors, screenColors, screenResolution, screenResolution, sessionControl, sessionControl, setBoolean, setDouble, setInteger, setString, toBoolean, toDouble, toInteger, toString, trackingId, trackingId, userLanguage, userLanguage, viewportSize, viewportSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SocialHit

public SocialHit()

SocialHit

public SocialHit(String socialNetwork,
                 String socialAction,
                 String socialTarget)
Method Detail

socialNetwork

public SocialHit socialNetwork(String value)

Required for social hit type.

Specifies the social network, for example Facebook or Google Plus.

Parameter Value Type Default Value Max Length Supported Hit Types
sn text None 50 Bytes social
Example value: facebook
Example usage: sn=facebook


socialNetwork

public String socialNetwork()

socialAction

public SocialHit socialAction(String value)

Required for social hit type.

Specifies the social interaction action. For example on Google Plus when a user clicks the +1 button, the social action is 'plus'.

Parameter Value Type Default Value Max Length Supported Hit Types
sa text None 50 Bytes social
Example value: like
Example usage: sa=like


socialAction

public String socialAction()

socialActionTarget

public SocialHit socialActionTarget(String value)

Required for social hit type.

Specifies the target of a social interaction. This value is typically a URL but can be any text.

Parameter Value Type Default Value Max Length Supported Hit Types
st text None 2048 Bytes social
Example value: http://foo.com
Example usage: st=http%3A%2F%2Ffoo.com


socialActionTarget

public String socialActionTarget()


Copyright © Sep 2013–2013 brsanthu Inc. All rights reserved.