public class SocialHit extends GoogleAnalyticsRequest<SocialHit>
For more information, see GA Parameters Reference
customDimentions, customMetrics, parms
Constructor and Description |
---|
SocialHit() |
SocialHit(java.lang.String socialNetwork,
java.lang.String socialAction,
java.lang.String socialTarget) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
socialAction() |
SocialHit |
socialAction(java.lang.String value)
|
java.lang.String |
socialActionTarget() |
SocialHit |
socialActionTarget(java.lang.String value)
|
java.lang.String |
socialNetwork() |
SocialHit |
socialNetwork(java.lang.String value)
|
adwordsId, adwordsId, anonymizeIp, anonymizeIp, applicationID, applicationID, applicationInstallerID, applicationInstallerID, applicationName, applicationName, applicationVersion, applicationVersion, cacheBuster, cacheBuster, campaignContent, campaignContent, campaignId, campaignId, campaignKeyword, campaignKeyword, campaignMedium, campaignMedium, campaignName, campaignName, campaignSource, campaignSource, clientId, clientId, contentDescription, contentDescription, customDimension, customDimension, 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, userAgent, userAgent, userId, userId, userIp, userIp, userLanguage, userLanguage, viewportSize, viewportSize
public SocialHit()
public SocialHit(java.lang.String socialNetwork, java.lang.String socialAction, java.lang.String socialTarget)
public SocialHit socialNetwork(java.lang.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 |
facebook
sn=facebook
public java.lang.String socialNetwork()
public SocialHit socialAction(java.lang.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 |
like
sa=like
public java.lang.String socialAction()
public SocialHit socialActionTarget(java.lang.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 |
http://foo.com
st=http%3A%2F%2Ffoo.com
public java.lang.String socialActionTarget()