Documentation ¶
Index ¶
- type Client
- func (h *Client) Affiliation(affiliation string) *Client
- func (h *Client) AnonymizeIP(anonymizeIP bool) *Client
- func (h *Client) ApplicationID(applicationID string) *Client
- func (h *Client) ApplicationInstallerID(applicationInstallerID string) *Client
- func (h *Client) ApplicationName(applicationName string) *Client
- func (h *Client) ApplicationVersion(applicationVersion string) *Client
- func (h *Client) CacheBuster(cacheBuster string) *Client
- func (h *Client) CampaignContent(campaignContent string) *Client
- func (h *Client) CampaignID(campaignID string) *Client
- func (h *Client) CampaignKeyword(campaignKeyword string) *Client
- func (h *Client) CampaignMedium(campaignMedium string) *Client
- func (h *Client) CampaignName(campaignName string) *Client
- func (h *Client) CampaignSource(campaignSource string) *Client
- func (h *Client) CheckoutStep(checkoutStep int64) *Client
- func (h *Client) CheckoutStepOption(checkoutStepOption string) *Client
- func (h *Client) ClientID(clientID string) *Client
- func (h *Client) Copy() *Client
- func (h *Client) CouponCode(couponCode string) *Client
- func (h *Client) CurrencyCode(currencyCode string) *Client
- func (h *Client) CustomDimension(customDimension string) *Client
- func (h *Client) CustomDimensionMap(customDimensionMap map[string]string) *Client
- func (h *Client) CustomMetric(customMetric int64) *Client
- func (h *Client) DataSource(dataSource string) *Client
- func (h *Client) DimensionIndex(dimensionIndex string) *Client
- func (h *Client) DocumentEncoding(documentEncoding string) *Client
- func (h *Client) DocumentHostName(documentHostName string) *Client
- func (h *Client) DocumentLocationURL(documentLocationURL string) *Client
- func (h *Client) DocumentPath(documentPath string) *Client
- func (h *Client) DocumentReferrer(documentReferrer string) *Client
- func (h *Client) DocumentTitle(documentTitle string) *Client
- func (h *Client) ExperimentID(experimentID string) *Client
- func (h *Client) ExperimentVariant(experimentVariant string) *Client
- func (h *Client) FlashVersion(flashVersion string) *Client
- func (h *Client) GeographicalOverride(geographicalOverride string) *Client
- func (h *Client) GoogleAdWordsID(googleAdWordsID string) *Client
- func (h *Client) GoogleDisplayAdsID(googleDisplayAdsID string) *Client
- func (h *Client) IPOverride(iPOverride string) *Client
- func (h *Client) JavaEnabled(javaEnabled bool) *Client
- func (h *Client) LinkID(linkID string) *Client
- func (h *Client) ListIndex(listIndex string) *Client
- func (h *Client) MetricIndex(metricIndex string) *Client
- func (h *Client) NonInteractionHit(nonInteractionHit bool) *Client
- func (h *Client) ProductAction(productAction string) *Client
- func (h *Client) ProductActionList(productActionList string) *Client
- func (h *Client) ProductBrand(productBrand string) *Client
- func (h *Client) ProductCategory(productCategory string) *Client
- func (h *Client) ProductCouponCode(productCouponCode string) *Client
- func (h *Client) ProductCustomDimension(productCustomDimension string) *Client
- func (h *Client) ProductCustomMetric(productCustomMetric int64) *Client
- func (h *Client) ProductImpressionBrand(productImpressionBrand string) *Client
- func (h *Client) ProductImpressionCategory(productImpressionCategory string) *Client
- func (h *Client) ProductImpressionCustomDimension(productImpressionCustomDimension string) *Client
- func (h *Client) ProductImpressionCustomMetric(productImpressionCustomMetric int64) *Client
- func (h *Client) ProductImpressionListName(productImpressionListName string) *Client
- func (h *Client) ProductImpressionName(productImpressionName string) *Client
- func (h *Client) ProductImpressionPosition(productImpressionPosition int64) *Client
- func (h *Client) ProductImpressionPrice(productImpressionPrice float64) *Client
- func (h *Client) ProductImpressionSKU(productImpressionSKU string) *Client
- func (h *Client) ProductImpressionVariant(productImpressionVariant string) *Client
- func (h *Client) ProductIndex(productIndex string) *Client
- func (h *Client) ProductName(productName string) *Client
- func (h *Client) ProductPosition(productPosition int64) *Client
- func (h *Client) ProductPrice(productPrice float64) *Client
- func (h *Client) ProductQuantity(productQuantity int64) *Client
- func (h *Client) ProductSKU(productSKU string) *Client
- func (h *Client) ProductVariant(productVariant string) *Client
- func (h *Client) PromoIndex(promoIndex string) *Client
- func (h *Client) PromotionAction(promotionAction string) *Client
- func (h *Client) PromotionCreative(promotionCreative string) *Client
- func (h *Client) PromotionID(promotionID string) *Client
- func (h *Client) PromotionName(promotionName string) *Client
- func (h *Client) PromotionPosition(promotionPosition string) *Client
- func (h *Client) ProtocolVersion(protocolVersion string) *Client
- func (h *Client) QueueTime(queueTime int64) *Client
- func (h *Client) Revenue(revenue float64) *Client
- func (h *Client) ScreenColors(screenColors string) *Client
- func (h *Client) ScreenName(screenName string) *Client
- func (h *Client) ScreenResolution(screenResolution string) *Client
- func (c *Client) Send(h hitType) error
- func (h *Client) SessionControl(sessionControl string) *Client
- func (h *Client) Shipping(shipping float64) *Client
- func (h *Client) Tax(tax float64) *Client
- func (h *Client) TransactionID(transactionID string) *Client
- func (h *Client) UserAgentOverride(userAgentOverride string) *Client
- func (h *Client) UserID(userID string) *Client
- func (h *Client) UserLanguage(userLanguage string) *Client
- func (h *Client) ViewportSize(viewportSize string) *Client
- type Event
- type Exception
- type Item
- type Pageview
- type Screenview
- type Social
- type Timing
- func (h *Timing) ContentLoadTime(contentLoadTime int64) *Timing
- func (h *Timing) Copy() *Timing
- func (h *Timing) DNSTime(dNSTime int64) *Timing
- func (h *Timing) DOMInteractiveTime(dOMInteractiveTime int64) *Timing
- func (h *Timing) PageDownloadTime(pageDownloadTime int64) *Timing
- func (h *Timing) PageLoadTime(pageLoadTime int64) *Timing
- func (h *Timing) RedirectResponseTime(redirectResponseTime int64) *Timing
- func (h *Timing) ServerResponseTime(serverResponseTime int64) *Timing
- func (h *Timing) TCPConnectTime(tCPConnectTime int64) *Timing
- func (h *Timing) UserTimingCategory(userTimingCategory string) *Timing
- func (h *Timing) UserTimingLabel(userTimingLabel string) *Timing
- func (h *Timing) UserTimingTime(userTimingTime int64) *Timing
- func (h *Timing) UserTimingVariableName(userTimingVariableName string) *Timing
- type Transaction
- func (h *Transaction) Affiliation(affiliation string) *Transaction
- func (h *Transaction) Copy() *Transaction
- func (h *Transaction) CurrencyCode(currencyCode string) *Transaction
- func (h *Transaction) Revenue(revenue float64) *Transaction
- func (h *Transaction) Shipping(shipping float64) *Transaction
- func (h *Transaction) Tax(tax float64) *Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { //Use TLS when Send()ing UseTLS bool HttpClient *http.Client // contains filtered or unexported fields }
Client Hit Type
func (*Client) Affiliation ¶
The store or affiliation from which this transaction occurred. This is an additional parameter that can be sent when Product Action is set to 'purchase' or 'refund'. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) AnonymizeIP ¶
When present, the IP address of the sender will be anonymized. For example, the IP will be anonymized if any of the following parameters are present in the payload: &aip=, &aip=0, or &aip=1
func (*Client) ApplicationID ¶
Application identifier.
func (*Client) ApplicationInstallerID ¶
Application installer identifier.
func (*Client) ApplicationName ¶
Specifies the application name.
func (*Client) ApplicationVersion ¶
Specifies the application version.
func (*Client) CacheBuster ¶
Used to send a random number in GET requests to ensure browsers and proxies don't cache hits. It should be sent as the final parameter of the request since we've seen some 3rd party internet filtering software add additional parameters to HTTP requests incorrectly. This value is not used in reporting.
func (*Client) CampaignContent ¶
Specifies the campaign content.
func (*Client) CampaignID ¶
Specifies the campaign ID.
func (*Client) CampaignKeyword ¶
Specifies the campaign keyword.
func (*Client) CampaignMedium ¶
Specifies the campaign medium.
func (*Client) CampaignName ¶
Specifies the campaign name.
func (*Client) CampaignSource ¶
Specifies the campaign source.
func (*Client) CheckoutStep ¶
The step number in a checkout funnel. This is an additional parameter that can be sent when Product Action is set to 'checkout'. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) CheckoutStepOption ¶
Additional information about a checkout step. This is an additional parameter that can be sent when Product Action is set to 'checkout'. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ClientID ¶
This anonymously identifies a particular user, device, or browser instance. For the web, this is generally stored as a first-party cookie with a two-year expiration. For mobile apps, this is randomly generated for each particular instance of an application install. The value of this field should be a random UUID (version 4) as described in http://www.ietf.org/rfc/rfc4122.txt
func (*Client) CouponCode ¶
The transaction coupon redeemed with the transaction. This is an additional parameter that can be sent when Product Action is set to 'purchase' or 'refund'. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) CurrencyCode ¶
When present indicates the local currency for all transaction currency values. Value should be a valid ISO 4217 currency code.
func (*Client) CustomDimension ¶
Each custom dimension has an associated index. There is a maximum of 20 custom dimensions (200 for Premium accounts). The dimension index must be a positive integer between 1 and 200, inclusive.
func (*Client) CustomDimensionMap ¶
Each custom dimension has an associated index. There is a maximum of 20 custom dimensions (200 for Premium accounts). The dimension index must be a positive integer between 1 and 200, inclusive.
func (*Client) CustomMetric ¶
Each custom metric has an associated index. There is a maximum of 20 custom metrics (200 for Premium accounts). The metric index must be a positive integer between 1 and 200, inclusive.
func (*Client) DataSource ¶
Indicates the data source of the hit. Hits sent from analytics.js will have data source set to 'web'; hits sent from one of the mobile SDKs will have data source set to 'app'.
func (*Client) DimensionIndex ¶
DimensionIndex is required by other properties
func (*Client) DocumentEncoding ¶
Specifies the character set used to encode the page / document.
func (*Client) DocumentHostName ¶
Specifies the hostname from which content was hosted.
func (*Client) DocumentLocationURL ¶
Use this parameter to send the full URL (document location) of the page on which content resides. You can use the &dh and &dp parameters to override the hostname and path + query portions of the document location, accordingly. The JavaScript clients determine this parameter using the concatenation of the document.location.origin + document.location.pathname + document.location.search browser parameters. Be sure to remove any user authentication or other private information from the URL if present. For 'pageview' hits, either &dl or both &dh and &dp have to be specified for the hit to be valid.
func (*Client) DocumentPath ¶
The path portion of the page URL. Should begin with '/'. For 'pageview' hits, either &dl or both &dh and &dp have to be specified for the hit to be valid.
func (*Client) DocumentReferrer ¶
Specifies which referral source brought traffic to a website. This value is also used to compute the traffic source. The format of this value is a URL.
func (*Client) DocumentTitle ¶
The title of the page / document.
func (*Client) ExperimentID ¶
This parameter specifies that this user has been exposed to an experiment with the given ID. It should be sent in conjunction with the Experiment Variant parameter.
func (*Client) ExperimentVariant ¶
This parameter specifies that this user has been exposed to a particular variation of an experiment. It should be sent in conjunction with the Experiment ID parameter.
func (*Client) FlashVersion ¶
Specifies the flash version.
func (*Client) GeographicalOverride ¶
The geographical location of the user. The geographical ID should be a two letter country code or a criteria ID representing a city or region (see http://developers.google.com/analytics/devguides/collection/protocol/v1/geoid). This parameter takes precedent over any location derived from IP address, including the IP Override parameter. An invalid code will result in geographical dimensions to be set to '(not set)'.
func (*Client) GoogleAdWordsID ¶
Specifies the Google AdWords Id.
func (*Client) GoogleDisplayAdsID ¶
Specifies the Google Display Ads Id.
func (*Client) IPOverride ¶
The IP address of the user. This should be a valid IP address in IPv4 or IPv6 format. It will always be anonymized just as though &aip (anonymize IP) had been used.
func (*Client) JavaEnabled ¶
Specifies whether Java was enabled.
func (*Client) LinkID ¶
The ID of a clicked DOM element, used to disambiguate multiple links to the same URL in In-Page Analytics reports when Enhanced Link Attribution is enabled for the property.
func (*Client) MetricIndex ¶
MetricIndex is required by other properties
func (*Client) NonInteractionHit ¶
Specifies that a hit be considered non-interactive.
func (*Client) ProductAction ¶
The role of the products included in a hit. If a product action is not specified, all product definitions included with the hit will be ignored. Must be one of: detail, click, add, remove, checkout, checkout_option, purchase, refund. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductActionList ¶
The list or collection from which a product action occurred. This is an additional parameter that can be sent when Product Action is set to 'detail' or 'click'. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductBrand ¶
The brand associated with the product. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductCategory ¶
The category to which the product belongs. Product index must be a positive integer between 1 and 200, inclusive. The product category parameter can be hierarchical. Use / as a delimiter to specify up to 5-levels of hierarchy. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductCouponCode ¶
The coupon code associated with a product. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductCustomDimension ¶
A product-level custom dimension where dimension index is a positive integer between 1 and 200, inclusive. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductCustomMetric ¶
A product-level custom metric where metric index is a positive integer between 1 and 200, inclusive. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductImpressionBrand ¶
The brand associated with the product. Impression List index must be a positive integer between 1 and 200, inclusive. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductImpressionCategory ¶
The category to which the product belongs. Impression List index must be a positive integer between 1 and 200, inclusive. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductImpressionCustomDimension ¶
A product-level custom dimension where dimension index is a positive integer between 1 and 200, inclusive. Impression List index must be a positive integer between 1 and 200, inclusive. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductImpressionCustomMetric ¶
A product-level custom metric where metric index is a positive integer between 1 and 200, inclusive. Impression List index must be a positive integer between 1 and 200, inclusive. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductImpressionListName ¶
The list or collection to which a product belongs. Impression List index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductImpressionName ¶
The name of the product. Impression List index must be a positive integer between 1 and 200, inclusive. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductImpressionPosition ¶
The product's position in a list or collection. Impression List index must be a positive integer between 1 and 200, inclusive. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductImpressionPrice ¶
The price of a product. Impression List index must be a positive integer between 1 and 200, inclusive. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductImpressionSKU ¶
The product ID or SKU. Impression List index must be a positive integer between 1 and 200, inclusive. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductImpressionVariant ¶
The variant of the product. Impression List index must be a positive integer between 1 and 200, inclusive. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductIndex ¶
ProductIndex is required by other properties
func (*Client) ProductName ¶
The name of the product. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductPosition ¶
The product's position in a list or collection. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductPrice ¶
The price of a product. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductQuantity ¶
The quantity of a product. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductSKU ¶
The SKU of the product. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProductVariant ¶
The variant of the product. Product index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) PromoIndex ¶
PromoIndex is required by other properties
func (*Client) PromotionAction ¶
Specifies the role of the promotions included in a hit. If a promotion action is not specified, the default promotion action, 'view', is assumed. To measure a user click on a promotion set this to 'promo_click'. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) PromotionCreative ¶
The creative associated with the promotion. Promotion index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) PromotionID ¶
The promotion ID. Promotion index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) PromotionName ¶
The name of the promotion. Promotion index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) PromotionPosition ¶
The position of the creative. Promotion index must be a positive integer between 1 and 200, inclusive. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ProtocolVersion ¶
The Protocol version. The current value is '1'. This will only change when there are changes made that are not backwards compatible.
func (*Client) QueueTime ¶
Used to collect offline / latent hits. The value represents the time delta (in milliseconds) between when the hit being reported occurred and the time the hit was sent. The value must be greater than or equal to 0. Values greater than four hours may lead to hits not being processed.
func (*Client) Revenue ¶
The total value of the transaction, including tax and shipping. If not sent, this value will be automatically calculated using the product quantity and price fields of all products in the same hit. This is an additional parameter that can be sent when Product Action is set to 'purchase' or 'refund'. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) ScreenColors ¶
Specifies the screen color depth.
func (*Client) ScreenName ¶
If not specified, this will default to the unique URL of the page by either using the &dl parameter as-is or assembling it from &dh and &dp. App tracking makes use of this for the 'Screen Name' of the screenview hit.
func (*Client) ScreenResolution ¶
Specifies the screen resolution.
func (*Client) SessionControl ¶
Used to control the session duration. A value of 'start' forces a new session to start with this hit and 'end' forces the current session to end with this hit. All other values are ignored.
func (*Client) Shipping ¶
The shipping cost associated with the transaction. This is an additional parameter that can be sent when Product Action is set to 'purchase' or 'refund'. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) Tax ¶
The total tax associated with the transaction. This is an additional parameter that can be sent when Product Action is set to 'purchase' or 'refund'. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) TransactionID ¶
The transaction ID. This is an additional parameter that can be sent when Product Action is set to 'purchase' or 'refund'. For analytics.js the Enhanced Ecommerce plugin must be installed before using this field.
func (*Client) UserAgentOverride ¶
The User Agent of the browser. Note that Google has libraries to identify real user agents. Hand crafting your own agent could break at any time.
func (*Client) UserID ¶
This is intended to be a known identifier for a user provided by the site owner/tracking library user. It may not itself be PII (personally identifiable information). The value should never be persisted in GA cookies or other Analytics provided storage.
func (*Client) UserLanguage ¶
Specifies the language.
func (*Client) ViewportSize ¶
Specifies the viewable area of the browser / device.
type Exception ¶
type Exception struct {
// contains filtered or unexported fields
}
Exception Hit Type
func NewException ¶
func NewException() *Exception
func (*Exception) Description ¶
Specifies the description of an exception.
func (*Exception) IsExceptionFatal ¶
Specifies whether the exception was fatal.
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
Item Hit Type
func (*Item) CurrencyCode ¶
When present indicates the local currency for all transaction currency values. Value should be a valid ISO 4217 currency code.
type Screenview ¶
type Screenview struct { }
Screenview Hit Type
func NewScreenview ¶
func NewScreenview() *Screenview
NewScreenview creates a new Screenview Hit Type.
func (*Screenview) Copy ¶
func (h *Screenview) Copy() *Screenview
type Social ¶
type Social struct {
// contains filtered or unexported fields
}
Social Hit Type
func NewSocial ¶
NewSocial creates a new Social Hit Type. Specifies the social network, for example Facebook or Google Plus. Specifies the social interaction action. For example on Google Plus when a user clicks the +1 button, the social action is 'plus'. Specifies the target of a social interaction. This value is typically a URL but can be any text.
type Timing ¶
type Timing struct {
// contains filtered or unexported fields
}
Timing Hit Type
func (*Timing) ContentLoadTime ¶
Specifies the time it took for the DOMContentLoaded Event to fire. The value is in milliseconds.
func (*Timing) DNSTime ¶
Specifies the time it took to do a DNS lookup.The value is in milliseconds.
func (*Timing) DOMInteractiveTime ¶
Specifies the time it took for Document.readyState to be 'interactive'. The value is in milliseconds.
func (*Timing) PageDownloadTime ¶
Specifies the time it took for the page to be downloaded. The value is in milliseconds.
func (*Timing) PageLoadTime ¶
Specifies the time it took for a page to load. The value is in milliseconds.
func (*Timing) RedirectResponseTime ¶
Specifies the time it took for any redirects to happen. The value is in milliseconds.
func (*Timing) ServerResponseTime ¶
Specifies the time it took for the server to respond after the connect time. The value is in milliseconds.
func (*Timing) TCPConnectTime ¶
Specifies the time it took for a TCP connection to be made. The value is in milliseconds.
func (*Timing) UserTimingCategory ¶
Specifies the user timing category.
func (*Timing) UserTimingLabel ¶
Specifies the user timing label.
func (*Timing) UserTimingTime ¶
Specifies the user timing value. The value is in milliseconds.
func (*Timing) UserTimingVariableName ¶
Specifies the user timing variable.
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
Transaction Hit Type
func NewTransaction ¶
func NewTransaction(iD string) *Transaction
func (*Transaction) Affiliation ¶
func (h *Transaction) Affiliation(affiliation string) *Transaction
Specifies the affiliation or store name.
func (*Transaction) Copy ¶
func (h *Transaction) Copy() *Transaction
func (*Transaction) CurrencyCode ¶
func (h *Transaction) CurrencyCode(currencyCode string) *Transaction
When present indicates the local currency for all transaction currency values. Value should be a valid ISO 4217 currency code.
func (*Transaction) Revenue ¶
func (h *Transaction) Revenue(revenue float64) *Transaction
Specifies the total revenue associated with the transaction. This value should include any shipping or tax costs.
func (*Transaction) Shipping ¶
func (h *Transaction) Shipping(shipping float64) *Transaction
Specifies the total shipping cost of the transaction.
func (*Transaction) Tax ¶
func (h *Transaction) Tax(tax float64) *Transaction
Specifies the total tax of the transaction.