Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static class

# HitBuilders.TransactionBuilder

extends HitBuilder<HitBuilders.TransactionBuilder>

java.lang.Object
↳ | com.google.android.gms.analytics.HitBuilders.HitBuilder<com.google.android.gms.analytics.HitBuilders.TransactionBuilder>
| ↳ | com.google.android.gms.analytics.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.

## Summary

Public Constructors
| HitBuilders.TransactionBuilder()

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)

[Expand] Inherited Methods
From class com.google.android.gms.analytics.HitBuilders.HitBuilder
HitBuilders.TransactionBuilder | addImpression(Product product, String impressionList) Adds a product impression to the hit.
HitBuilders.TransactionBuilder | addProduct(Product product) Adds product information to be sent with a given hit.
HitBuilders.TransactionBuilder | addPromotion(Promotion promotion) Adds promotion related information to the hit.
Map<String, String> | build() Builds a `Map` of parameters and values that can be set on the `Tracker` object.
String | get(String paramName)
final HitBuilders.TransactionBuilder | set(String paramName, String paramValue) Sets the value for the given parameter name.
final HitBuilders.TransactionBuilder | setAll(Map<String, String> params) Adds a set of key, value pairs to the hit builder.
HitBuilders.TransactionBuilder | setCampaignParamsFromUrl(String utmParams) Parses and translates utm campaign parameters to analytics campaign parameters and returns them as a map.
HitBuilders.TransactionBuilder | setCustomDimension(int index, String dimension) Adds a custom dimension to the current hit builder.
HitBuilders.TransactionBuilder | setCustomMetric(int index, float metric) Adds a custom metric to the current hit builder.
HitBuilders.TransactionBuilder | setHitType(String hitType) Sets the type of the hit to be sent.
HitBuilders.TransactionBuilder | setNewSession()
HitBuilders.TransactionBuilder | setNonInteraction(boolean nonInteraction)
HitBuilders.TransactionBuilder | setProductAction(ProductAction action) Sets a product action for all the products included in this hit.
HitBuilders.TransactionBuilder | setPromotionAction(String action) Adds an action associated with the promotions in a given hit.
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## 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)