public class TransactionHit extends GoogleAnalyticsRequest<TransactionHit>
For more information, see GA Parameters Reference
customDimensions, customMetrics, delegateExecutor, parms| Constructor and Description |
|---|
TransactionHit() |
TransactionHit(String txId) |
TransactionHit(String txId,
Double txRevenue) |
TransactionHit(String txId,
String txAffiliation,
Double txRevenue) |
TransactionHit(String txId,
String txAffiliation,
Double txRevenue,
Double txShipping,
Double txTax,
String currencyCode) |
TransactionHit(String txId,
String txAffiliation,
Double txRevenue,
String currencyCode) |
| Modifier and Type | Method and Description |
|---|---|
String |
currencyCode() |
TransactionHit |
currencyCode(String value)
|
String |
txAffiliation() |
TransactionHit |
txAffiliation(String value)
|
String |
txId() |
TransactionHit |
txId(String value)
|
Double |
txRevenue() |
TransactionHit |
txRevenue(Double value)
|
Double |
txShipping() |
TransactionHit |
txShipping(Double value)
|
Double |
txTax() |
TransactionHit |
txTax(Double 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, customDimensions, customMetric, customMetric, custommMetrics, dataSource, dataSource, displayadId, displayadId, documentEncoding, documentEncoding, documentHostName, documentHostName, documentPath, documentPath, documentReferrer, documentReferrer, documentTitle, documentTitle, documentUrl, documentUrl, experimentId, experimentId, experimentVariant, experimentVariant, flashVersion, flashVersion, fromBoolean, fromDouble, fromInteger, geoid, geoid, getBoolean, getDouble, getInteger, getParameters, getString, hitType, hitType, javaEnabled, javaEnabled, nonInteractionHit, nonInteractionHit, parameter, parameter, protocolVersion, protocolVersion, queueTime, queueTime, screenColors, screenColors, screenResolution, screenResolution, send, sendAsync, sessionControl, sessionControl, setBoolean, setDouble, setExecutor, setInteger, setString, toBoolean, toDouble, toInteger, toString, trackingId, trackingId, userAgent, userAgent, userId, userId, userIp, userIp, userLanguage, userLanguage, viewportSize, viewportSizepublic TransactionHit()
public TransactionHit(String txId)
public TransactionHit(String txId, String txAffiliation, Double txRevenue, String currencyCode)
public TransactionHit txId(String value)
Required for transaction hit type.
Required for item hit type.
A unique identifier for the transaction. This value should be the same for both the Transaction hit and Items hits associated to the particular transaction.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
ti |
text | None | 500 Bytes | transaction, item |
OD564ti=OD564 public String txId()
public TransactionHit txAffiliation(String value)
Optional.
Specifies the affiliation or store name.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
ta |
text | None | 500 Bytes | transaction |
Memberta=Member public String txAffiliation()
public TransactionHit txRevenue(Double value)
Optional.
Specifies the total revenue associated with the transaction. This value should include any shipping or tax costs.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
tr |
currency | 0 |
None | transaction |
15.47tr=15.47 public Double txRevenue()
public TransactionHit txShipping(Double value)
Optional.
Specifies the total shipping cost of the transaction.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
ts |
currency | 0 |
None | transaction |
3.50ts=3.50 public Double txShipping()
public TransactionHit txTax(Double value)
Optional.
Specifies the total tax of the transaction.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
tt |
currency | 0 |
None | transaction |
11.20tt=11.20 public Double txTax()
public TransactionHit currencyCode(String value)
Optional.
When present indicates the local currency for all transaction currency values. Value should be a valid ISO 4217 currency code.
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
|---|---|---|---|---|
cu |
text | None | 10 Bytes | transaction, item |
EURcu=EUR public String currencyCode()
Copyright © Sep 2013–2019 Mike Hardy. All rights reserved.