google_analytics

package
v0.0.0-...-8aeb8a1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReportsCollection = "report"
)

Variables

This section is empty.

Functions

func NewGoogleAnalytics

func NewGoogleAnalytics(ctx context.Context, sourceConfig *base.SourceConfig, collection *base.Collection) (base.Driver, error)

NewGoogleAnalytics returns configured Google Analytics driver instance

func TestGoogleAnalytics

func TestGoogleAnalytics(sourceConfig *base.SourceConfig) error

TestGoogleAnalytics tests connection to Google Analytics without creating Driver instance

Types

type GAReportFieldsConfig

type GAReportFieldsConfig struct {
	Dimensions []string `mapstructure:"dimensions" json:"dimensions,omitempty" yaml:"dimensions,omitempty"`
	Metrics    []string `mapstructure:"metrics" json:"metrics,omitempty" yaml:"metrics,omitempty"`
}

type GoogleAnalytics

type GoogleAnalytics struct {
	base.IntervalDriver
	// contains filtered or unexported fields
}

func (*GoogleAnalytics) Close

func (g *GoogleAnalytics) Close() error

func (*GoogleAnalytics) GetAllAvailableIntervals

func (g *GoogleAnalytics) GetAllAvailableIntervals() ([]*base.TimeInterval, error)

func (*GoogleAnalytics) GetCollectionMetaKey

func (g *GoogleAnalytics) GetCollectionMetaKey() string

func (*GoogleAnalytics) GetCollectionTable

func (g *GoogleAnalytics) GetCollectionTable() string

func (*GoogleAnalytics) GetObjectsFor

func (g *GoogleAnalytics) GetObjectsFor(interval *base.TimeInterval, objectsLoader base.ObjectsLoader) error

func (*GoogleAnalytics) GetRefreshWindow

func (a *GoogleAnalytics) GetRefreshWindow() (time.Duration, error)

func (*GoogleAnalytics) ReplaceTables

func (a *GoogleAnalytics) ReplaceTables() bool

func (*GoogleAnalytics) Type

func (g *GoogleAnalytics) Type() string

type GoogleAnalyticsConfig

type GoogleAnalyticsConfig struct {
	AuthConfig *base.GoogleAuthConfig `mapstructure:"auth" json:"auth,omitempty" yaml:"auth,omitempty"`
	ViewID     string                 `mapstructure:"view_id" json:"view_id,omitempty" yaml:"view_id,omitempty"`
}

func (*GoogleAnalyticsConfig) Validate

func (gac *GoogleAnalyticsConfig) Validate() error

Jump to

Keyboard shortcuts

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