ga

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analytics

type Analytics struct {
	ClientID        string
	DataSource      string
	UserIP          string
	UserAgent       string
	DocumentReferer string
	CampaignName    string
	CampaignSource  string
	CampaignMedium  string
	CampaignKeyword string
	CampaignID      string
	DocumentHost    string
	DocumentPath    string
	DocumentTitle   string
}

Analytics struct contains the information which can be sent to

type Queue

type Queue struct {
	SendCount  int
	ResetCount int
	CC         int // current counter
	TrackingID string
}

Queue struct will be used to send data to GA

func (*Queue) Push

func (queue *Queue) Push(data *Analytics)

Push method will send data to analytics by using basic sampling logic

Jump to

Keyboard shortcuts

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