public static class


extends HitBuilder<HitBuilders.TransactionBuilder>

This class is deprecated.
This class has been deprecated in favor of a richer set of APIs on all the HitBuilder classes. With the new approach, simply use addProduct, addImpression, addPromo and setAction to add ecommerce data to any of the hits.

Class Overview

Transaction hit builder allows you to send in-app purchases and sales to Google Analytics. Transaction Id, affiliation and revenue are required for meaningful reports on transaction data.


Public Constructors
Public Methods
HitBuilders.TransactionBuilder setAffiliation(String affiliation)
HitBuilders.TransactionBuilder setCurrencyCode(String currencyCode)
HitBuilders.TransactionBuilder setRevenue(double revenue)
HitBuilders.TransactionBuilder setShipping(double shipping)
HitBuilders.TransactionBuilder setTax(double tax)
HitBuilders.TransactionBuilder setTransactionId(String transactionid)
Inherited Methods
From class
From class java.lang.Object

Public Constructors

public HitBuilders.TransactionBuilder ()

Public Methods

public HitBuilders.TransactionBuilder setAffiliation (String affiliation)

public HitBuilders.TransactionBuilder setCurrencyCode (String currencyCode)

public HitBuilders.TransactionBuilder setRevenue (double revenue)

public HitBuilders.TransactionBuilder setShipping (double shipping)

public HitBuilders.TransactionBuilder setTax (double tax)

public HitBuilders.TransactionBuilder setTransactionId (String transactionid)