package
3.3.0+incompatible
Repository: https://github.com/google/agi.git
Documentation: pkg.go.dev

# Packages

Package param holds Google Analytics parameter names.

# Functions

Disable turns off Google Analytics tracking.
Enable turns on Google Analytics tracking functionality using the given clientID and version.
Flush flushes any pending Payloads to be sent to the Google Analytics server.
Send queues the Payload p to be sent to the Google Analytics server if analytics is enabled with a prior call to Enable().
SendBug sends an event indicating that a known bug has been hit.
SendEvent sends the specific event to the Google Analytics server (if enabled).
SendException sends the exception to the Google Analytics server (if enabled).
SendTiming is a no-op when analytics are not enabled.
TargetDevice returns a payload value that describes a target device.

# Variables

OnError is called whenever there was a problem sending analytics.

# Structs

AppVersion holds information about the currently running application and its version.
ErrPayloadTooLarge is the error returned when attempting to send a payload that is too large to send.
Event is a payload value that represents a single event.
Exception is a payload value that represents an application exception or crash.
SessionEnd is a payload value to indicate the end of a session.
SessionStart is a payload value to indicate the start of a session.
Timing is a payload value that represents a timing.

# Interfaces

Payload is the interface implemented by Google Analytic payload types.

# Type aliases

Count is a payload value for count values, usually number of items.
Size is a payload value for size values, usually representing bytes.
Stop is the function returned by SendTiming to end the timed region and send the result to the Google Analytics server (if enabled).