com.brsanthu.googleanalytics
Class SocialHit
java.lang.Object
com.brsanthu.googleanalytics.GoogleAnalyticsRequest<SocialHit>
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
| 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, expirementId, expirementId, expirementVariant, expirementVariant, 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 |
SocialHit
public SocialHit()
SocialHit
public SocialHit(String socialNetwork,
String socialAction,
String socialTarget)
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.