analytics

package
v0.0.0-...-22f0dc9 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCampaign

func AddCampaign(urlStr, campaign, content, medium string) (string, error)

AddCampaign adds Google Analytics campaign tracking to a URL and returns that URL.

func Start

func Start(deviceID, version string) *session

Start starts the analytics session with the given data.

Types

type NullSession

type NullSession struct{}

func (NullSession) End

func (s NullSession) End()

func (NullSession) Event

func (s NullSession) Event(string, string)

func (NullSession) EventWithLabel

func (s NullSession) EventWithLabel(string, string, string)

func (NullSession) SetIP

func (s NullSession) SetIP(string)

type Session

type Session interface {
	SetIP(string)
	EventWithLabel(string, string, string)
	Event(string, string)
	End()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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