config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Google Google `yaml:"google"`
	// https://github.com/gzuidhof/tygo
	Typescript Typescript `yaml:"typescript"`
	// https://github.com/gzuidhof/tygo
	Tagmanager Tagmanager `yaml:"tagmanager"`
}

type Container

type Container struct {
	ContainerID   string `yaml:"container_id"`
	WorkspaceID   string `yaml:"workspace_id"`
	MeasurementID string `yaml:"measurement_id"`
}

type GA4

type GA4 struct {
	MeasurementID string `yaml:"measurement_id"`
}

type GT added in v0.1.8

type GT struct {
	ServerContainerURL string `yaml:"server_container_url"`
	EnablePageViews    bool   `yaml:"enable_page_views"`
}

type GTM

type GTM struct {
	AccountID string    `yaml:"account_id"`
	Web       Container `yaml:"web"`
	Server    Container `yaml:"server"`
}

type Google

type Google struct {
	GT              GT     `yaml:"gt"`
	GA4             GA4    `yaml:"ga4"`
	GTM             GTM    `yaml:"gtm"`
	RequestQuota    int    `yaml:"request_quota"`
	CredentialsFile string `yaml:"credentials_file"`
	CredentialsJSON string `yaml:"credentials_json"`
}

type Package added in v0.2.0

type Package struct {
	Path   string   `yaml:"path"`
	Events []string `yaml:"events"`
}

func (Package) ExportEvent added in v0.2.0

func (c Package) ExportEvent(event string) bool

type Packages added in v0.2.0

type Packages []Package

func (Packages) PackageConfig added in v0.2.0

func (c Packages) PackageConfig(path string) (Package, error)

func (Packages) PackageNames added in v0.2.0

func (c Packages) PackageNames() []string

type Tagmanager added in v0.1.5

type Tagmanager struct {
	contemplate.Config `yaml:",squash"`
	Tags               TagmanagerTags     `yaml:"tags"`
	Prefixes           TagmanagerPrefixes `yaml:"prefixes"`
}

type TagmanagerPrefixes added in v0.1.5

type TagmanagerPrefixes struct {
	Client    string                    `yaml:"client"`
	Folder    string                    `yaml:"folder"`
	Tags      TagmangerTagPrefixes      `yaml:"tags"`
	Triggers  TagmangerTriggerPrefixes  `yaml:"triggers"`
	Variables TagmangerVariablePrefixes `yaml:"variables"`
}

func (TagmanagerPrefixes) ClientName added in v0.1.5

func (p TagmanagerPrefixes) ClientName(name string) string

func (TagmanagerPrefixes) FolderName added in v0.1.5

func (p TagmanagerPrefixes) FolderName(name string) string

type TagmanagerTags added in v0.2.0

type TagmanagerTags struct {
	GA4Enabled bool `yaml:"gA4_enabled"`
}

type TagmangerTagPrefixes added in v0.1.5

type TagmangerTagPrefixes struct {
	GA4Event       string `yaml:"ga4_event"`
	GoogleTag      string `yaml:"google_tag"`
	ServerGA4Event string `yaml:"server_ga4_event"`
}

func (TagmangerTagPrefixes) GA4EventName added in v0.1.5

func (p TagmangerTagPrefixes) GA4EventName(name string) string

func (TagmangerTagPrefixes) GoogleTagName added in v0.1.5

func (p TagmangerTagPrefixes) GoogleTagName(name string) string

func (TagmangerTagPrefixes) ServerGA4EventName added in v0.1.5

func (p TagmangerTagPrefixes) ServerGA4EventName(name string) string

type TagmangerTriggerPrefixes added in v0.1.5

type TagmangerTriggerPrefixes struct {
	Client      string `yaml:"client"`
	CustomEvent string `yaml:"custom_event"`
}

func (TagmangerTriggerPrefixes) ClientName added in v0.1.5

func (p TagmangerTriggerPrefixes) ClientName(name string) string

func (TagmangerTriggerPrefixes) CustomEventName added in v0.1.5

func (p TagmangerTriggerPrefixes) CustomEventName(name string) string

type TagmangerVariablePrefixes added in v0.1.5

type TagmangerVariablePrefixes struct {
	Constant        string `yaml:"constant"`
	EventModel      string `yaml:"event_model"`
	GTEventSettings string `yaml:"gt_event_settings"`
	GTSettings      string `yaml:"gt_settings"`
}

func (TagmangerVariablePrefixes) ConstantName added in v0.1.5

func (p TagmangerVariablePrefixes) ConstantName(name string) string

func (TagmangerVariablePrefixes) EventModelName added in v0.1.5

func (p TagmangerVariablePrefixes) EventModelName(name string) string

func (TagmangerVariablePrefixes) GTEventSettingsName added in v0.1.5

func (p TagmangerVariablePrefixes) GTEventSettingsName(name string) string

func (TagmangerVariablePrefixes) GTSettingsName added in v0.1.5

func (p TagmangerVariablePrefixes) GTSettingsName(name string) string

type Typescript added in v0.1.5

type Typescript struct {
	contemplate.Config `yaml:",squash"`
	OutputPath         string `yaml:"output_path"`
}

Jump to

Keyboard shortcuts

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