|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.brsanthu.googleanalytics.GoogleAnalyticsRequest<TransactionHit>
com.brsanthu.googleanalytics.TransactionHit
public class TransactionHit
GA request to track ecommerce transaction.
For more information, see GA Parameters Reference
Field Summary |
---|
Fields inherited from class com.brsanthu.googleanalytics.GoogleAnalyticsRequest |
---|
customDimentions, customMetrics, parms |
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TransactionHit()
public TransactionHit(String txId)
public TransactionHit(String txId, Double txRevenue)
public TransactionHit(String txId, String txAffiliation, Double txRevenue)
public TransactionHit(String txId, String txAffiliation, Double txRevenue, String currencyCode)
public TransactionHit(String txId, String txAffiliation, Double txRevenue, Double txShipping, Double txTax, String currencyCode)
Method Detail |
---|
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 |
OD564
ti=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 |
Member
ta=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.47
tr=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.50
ts=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.20
tt=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 |
EUR
cu=EUR
public String currencyCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |