google_analtyics

package
v0.0.0-...-523796e Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricFetcher

type MetricFetcher interface {
	PageViewsByPath(startDate, endDate string) ([]PageViewCount, error)
}

MetricFetcher retrieves metrics from Google Analytics.

func New

func New() (mf MetricFetcher, err error)

New creates a new MetricFetcher instance.

type PageViewCount

type PageViewCount struct {
	Path  string
	Views int
}

PageViewCount represents the number of pageviews for a given URL path.

Jump to

Keyboard shortcuts

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