analytics

package
v0.14.9-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SecretKey   = ""
	FrontendKey = ""
)
View Source
var (
	MeasurementID = ""
)

Functions

func Init

func Init(enabled bool, serverID, appVersion, env, secretKey, frontendKey string) error

func InjectProperties

func InjectProperties(data map[string]string, properties string) map[string]string

func Ready

func Ready() bool

func SendEvent

func SendEvent(name, category, clientID string, data *map[string]string) error

Types

type Tracker

type Tracker interface {
	Track(event string, props map[string]string) error
	Ready() bool
}

Jump to

Keyboard shortcuts

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