config

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 1 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 GTM

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

type Google

type Google struct {
	GA4                GA4    `yaml:"ga4"`
	GTM                GTM    `yaml:"gtm"`
	CredentialsFile    string `yaml:"credentials_file"`
	CredentialsJSON    string `yaml:"credentials_json"`
	ServerContainerURL string `yaml:"server_container_url"`
}

type Tagmanager added in v0.1.5

type Tagmanager struct {
	Packages     []*tygo.PackageConfig `yaml:"packages"`
	TypeMappings map[string]string     `yaml:"type_mappings"`
	Prefixes     TagmanagerPrefixes    `yaml:"prefixes"`
}

func (Tagmanager) PackageConfig added in v0.1.5

func (e Tagmanager) PackageConfig(path string) *tygo.PackageConfig

func (Tagmanager) PackageNames added in v0.1.5

func (e Tagmanager) PackageNames() []string

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 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 {
	Packages     []*tygo.PackageConfig `yaml:"packages"`
	TypeMappings map[string]string     `yaml:"type_mappings"`
}

func (Typescript) PackageConfig added in v0.1.5

func (e Typescript) PackageConfig(path string) *tygo.PackageConfig

func (Typescript) PackageNames added in v0.1.5

func (e Typescript) PackageNames() []string

Jump to

Keyboard shortcuts

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