Documentation ¶
Index ¶
- Variables
- func GetAllGoals(ctx context.Context, idSite int, opts *model.GetGoalsOptions) ([]*model.Goal, error)
- func GetConvertedVisits(ctx context.Context, idSite, idGoal int, opts *model.ConvertedVisitsOptions) ([]*model.Visit, error)
- func GetConvertedVisitsBulk(ctx context.Context, queries ...[6]string) ([][]*model.Visit, error)
- func GetEcommerceItemsName(ctx context.Context, idSite int, opts *model.GetEcommerceGoalsOptions) ([]*model.EcommerceGoal, error)
- func GetEcommerceItemsSku(ctx context.Context, idSite int, opts *model.GetEcommerceGoalsOptions) ([]*model.EcommerceGoal, error)
- func GetGoal(ctx context.Context, idSite, idGoal int) (*model.Goal, error)
- func GetGoals(ctx context.Context, idSite int, goalIds []int, opts *model.GetGoalsOptions) ([]*model.Goal, error)
- func GetLastVisits(ctx context.Context, idSite int, opts *model.LastVisitsOpts) ([]*model.Visit, error)
- func GetSiteFromID(ctx context.Context, idSite int) (*model.Site, error)
- func GetSiteURLsFromID(ctx context.Context, idSite int) ([]string, error)
- func GetSitesFromIDs(ctx context.Context, siteIds ...int) ([]*model.Site, error)
- func GetSitesWithAtLeastViewAccess(ctx context.Context) ([]*model.Site, error)
- func GetSitesWithViewAccess(ctx context.Context) ([]*model.Site, error)
- func GetVisitorProfile(ctx context.Context, idSite int, visitorId string) (*model.VisitorProfile, error)
- func GetVisitorProfiles(ctx context.Context, idSite int, visitorIds []string) ([]*model.VisitorProfile, error)
- func GetVisitorProfilesBulk(ctx context.Context, queries ...[2]string) ([]*model.VisitorProfile, error)
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 GetConvertedVisits ¶
func GetConvertedVisitsBulk ¶
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 GetLastVisits ¶ added in v0.8.0
func GetSiteFromID ¶ added in v0.8.0
func GetSiteURLsFromID ¶ added in v0.8.0
func GetSitesFromIDs ¶ added in v0.9.0
func GetSitesWithAtLeastViewAccess ¶ added in v0.8.0
func GetSitesWithViewAccess ¶ added in v0.8.0
func GetVisitorProfile ¶
func GetVisitorProfiles ¶
func GetVisitorProfilesBulk ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.