analytics

package
v0.11.12 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MachineID

func MachineID() string

MachineID returns unique user machine ID

func SendAnonymousInfo

func SendAnonymousInfo()

SendAnonymousInfo will send event to GA

func SendAnonymouscmdInfo

func SendAnonymouscmdInfo()

SendAnonymouscmdInfo will send CLI event to GA

Types

type Event added in v0.11.2

type Event struct {
	Name   string `json:"name"`
	Params Params `json:"params,omitempty"`
}

type Params added in v0.11.2

type Params struct {
	EventCount       int64  `json:"event_count,omitempty"`
	EventCategory    string `json:"even_category,omitempty"`
	AppVersion       string `json:"app_version,omitempty"`
	AppName          string `json:"app_name,omitempty"`
	CustomDimensions string `json:"custom_dimensions,omitempty"`
	DataSource       string `json:"data_source,omitempty"`
}

type Payload added in v0.11.2

type Payload struct {
	ClientID string  `json:"client_id"`
	Events   []Event `json:"events"`
}

Jump to

Keyboard shortcuts

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