ga

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendAppInfo

func SendAppInfo(httpc *http.Client, gacode string, cookie string, app *AppInfo) error

SendAppInfo will send the AppInfo struct to GA over HTTP.

func SendEvent

func SendEvent(httpc *http.Client, gacode string, cookie string, event *Event) error

SendEvent will send the event struct to GA over HTTP.

func SendSessionStart

func SendSessionStart(httpc *http.Client, gacode string, cookie string) error

SendSessionStart will send a session start event to GA over HTTP.

func SendSessionStop

func SendSessionStop(httpc *http.Client, gacode string, cookie string) error

SendSessionStop will send a session stop event to GA over HTTP.

func SendValues

func SendValues(httpc *http.Client, gacode string, cookie string, values url.Values) error

SendValues will send supplied values to GA over HTTP.

Types

type AppInfo

type AppInfo struct {
	An   string // app name
	Aid  string // app identifier
	Av   string // app version
	Aiid string // app installer identifier
}

AppInfo represents a mobile app info GA event.

type Event

type Event struct {
	Ec string // event category
	Ea string // event action
	El string // event label
	Ev string // event value
}

Event is a GA event.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL