matomo

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorMissingAPIKey   = errors.New("missing Matomo API key in env")
	ErrorMissingEndpoint = errors.New("missing Matomo endpoint in env")
)

Functions

func GetAllGoals

func GetAllGoals(ctx context.Context, idSite int, opts *model.GetGoalsOptions) ([]*model.Goal, error)

func GetConvertedVisits

func GetConvertedVisits(ctx context.Context, idSite, idGoal int, opts *model.ConvertedVisitsOptions) ([]*model.Visit, error)

func GetConvertedVisitsBulk

func GetConvertedVisitsBulk(ctx context.Context, queries ...[6]string) ([][]*model.Visit, error)

func GetEcommerceItemsName added in v0.6.0

func GetEcommerceItemsName(ctx context.Context, idSite int, opts *model.GetEcommerceGoalsOptions) ([]*model.EcommerceGoal, error)

func GetEcommerceItemsSku added in v0.6.0

func GetEcommerceItemsSku(ctx context.Context, idSite int, opts *model.GetEcommerceGoalsOptions) ([]*model.EcommerceGoal, error)

func GetGoal

func GetGoal(ctx context.Context, idSite, idGoal int) (*model.Goal, error)

func GetGoals

func GetGoals(ctx context.Context, idSite int, goalIds []int, opts *model.GetGoalsOptions) ([]*model.Goal, error)

func GetLastVisits added in v0.8.0

func GetLastVisits(ctx context.Context, idSite int, opts *model.LastVisitsOpts) ([]*model.Visit, error)

func GetSiteFromID added in v0.8.0

func GetSiteFromID(ctx context.Context, idSite int) (*model.Site, error)

func GetSiteURLsFromID added in v0.8.0

func GetSiteURLsFromID(ctx context.Context, idSite int) ([]string, error)

func GetSitesFromIDs added in v0.9.0

func GetSitesFromIDs(ctx context.Context, siteIds ...int) ([]*model.Site, error)

func GetSitesWithAtLeastViewAccess added in v0.8.0

func GetSitesWithAtLeastViewAccess(ctx context.Context) ([]*model.Site, error)

func GetSitesWithViewAccess added in v0.8.0

func GetSitesWithViewAccess(ctx context.Context) ([]*model.Site, error)

func GetVisitorProfile

func GetVisitorProfile(ctx context.Context, idSite int, visitorId string) (*model.VisitorProfile, error)

func GetVisitorProfiles

func GetVisitorProfiles(ctx context.Context, idSite int, visitorIds []string) ([]*model.VisitorProfile, error)

func GetVisitorProfilesBulk

func GetVisitorProfilesBulk(ctx context.Context, queries ...[2]string) ([]*model.VisitorProfile, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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