tracking

package
v0.0.0-...-9537ddf Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActiveVisitors

func GetActiveVisitors() ([]pirsch.Stats, int)

func GetBrowser

func GetBrowser(startDate, endDate time.Time) []pirsch.BrowserStats

func GetCountry

func GetCountry(startDate, endDate time.Time) []pirsch.CountryStats

func GetHourlyVisitorsToday

func GetHourlyVisitorsToday() (template.JS, template.JS)

func GetLanguages

func GetLanguages(startDate, endDate time.Time) []pirsch.LanguageStats

func GetOS

func GetOS(startDate, endDate time.Time) []pirsch.OSStats

func GetPageVisits

func GetPageVisits(startDate, endDate time.Time) ([]PageVisitors, []PageVisitors)

func GetPlatform

func GetPlatform(startDate, endDate time.Time) *pirsch.VisitorStats

func GetReferrer

func GetReferrer(startDate, endDate time.Time) []pirsch.ReferrerStats

func GetTotalVisitors

func GetTotalVisitors(startDate, endDate time.Time) (template.JS, template.JS, template.JS, template.JS)

func GetVisitorTimeOfDay

func GetVisitorTimeOfDay(startDate, endDate time.Time) ([]pirsch.TimeOfDayVisitors, int)

func NewTracker

func NewTracker() (*pirsch.Tracker, context.CancelFunc)

Types

type PageVisitors

type PageVisitors struct {
	Path     string
	Visitors int
	Labels   template.JS
	Data     template.JS
	Sessions template.JS
	Bounces  template.JS
}

Jump to

Keyboard shortcuts

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