config

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version          string           `json:"version" yaml:"version"`
	RedactVisitorIP  bool             `json:"redactVisitorIp" yaml:"redactVisitorIp"`
	GoogleTag        GoogleTag        `json:"googleTag" yaml:"googleTag"`
	GoogleAPI        GoogleAPI        `json:"googleAPI" yaml:"googleAPI"`
	GoogleTagManager GoogleTagManager `json:"googleTagManager" yaml:"googleTagManager"`
	// Providers
	GoogleAds        GoogleAds        `json:"googleAds" yaml:"googleAds"`
	Cookiebot        Cookiebot        `json:"cookiebot" yaml:"cookiebot"`
	GoogleAnalytics  GoogleAnalytics  `json:"googleAnalytics" yaml:"googleAnalytics"`
	ConversionLinker ConversionLinker `json:"conversionLinker" yaml:"conversionLinker"`
	Facebook         Facebook         `json:"facebook" yaml:"facebook"`
	Emarsys          Emarsys          `json:"emarsys" yaml:"emarsys"`
	Umami            Umami            `json:"umami" yaml:"umami"`
}

type ConversionLinker added in v0.3.0

type ConversionLinker struct {
	Enabled       bool          `json:"enabled" yaml:"enabled"`
	GoogleConsent GoogleConsent `json:"googleConsent" yaml:"googleConsent"`
}

type Cookiebot added in v0.4.0

type Cookiebot struct {
	Enabled                      bool   `json:"enabled" yaml:"enabled"`
	TemplateName                 string `json:"templateName" yaml:"templateName"`
	CookiebotID                  string `json:"cookiebotId" yaml:"cookiebotId"`
	CDNRegion                    string `json:"cdnRegion" yaml:"cdnRegion"`
	URLPassthrough               bool   `json:"urlPassthrough" yaml:"urlPassthrough"`
	AdvertiserConsentModeEnabled bool   `json:"advertiserConsentModeEnabled" yaml:"advertiserConsentModeEnabled"`
}

type Emarsys added in v0.3.1

type Emarsys struct {
	Enabled         bool               `json:"enabled" yaml:"enabled"`
	MerchantID      string             `json:"merchantId" yaml:"merchantId"`
	GoogleConsent   GoogleConsent      `json:"googleConsent" yaml:"googleConsent"`
	WebContainer    contemplate.Config `json:"webContainer" yaml:"webContainer"`
	ServerContainer contemplate.Config `json:"serverContainer" yaml:"serverContainer"`
}

type Facebook added in v0.3.0

type Facebook struct {
	Enabled         bool               `json:"enabled" yaml:"enabled"`
	PixelID         string             `json:"pixelId" yaml:"pixelId"`
	APIAccessToken  string             `json:"apiAccessToken" yaml:"apiAccessToken"`
	TestEventToken  string             `json:"testEventToken" yaml:"testEventToken"`
	GoogleConsent   GoogleConsent      `json:"googleConsent" yaml:"googleConsent"`
	ServerContainer contemplate.Config `json:"serverContainer" yaml:"serverContainer"`
}

type GoogleAPI added in v0.3.0

type GoogleAPI struct {
	Credentials     string `json:"credentials" yaml:"credentials"`
	CredentialsFile string `json:"credentialsFile" yaml:"credentialsFile"`
	RequestQuota    int    `json:"requestQuota" yaml:"requestQuota"`
}

func (GoogleAPI) GetClientOption added in v0.3.0

func (c GoogleAPI) GetClientOption() googleapioption.ClientOption
type GoogleAds struct {
	Enabled       bool                 `json:"enabled" yaml:"enabled"`
	GoogleConsent GoogleConsent        `json:"googleConsent" yaml:"googleConsent"`
	ConversionID  string               `json:"conversionId" yaml:"conversionId"`
	Conversion    GoogleAdsConversion  `json:"conversion" yaml:"conversion"`
	Remarketing   GoogleAdsRemarketing `json:"remarketing" yaml:"remarketing"`
}

type GoogleAdsConversion added in v0.3.0

type GoogleAdsConversion struct {
	Enabled         bool               `json:"enabled" yaml:"enabled"`
	ConversionLabel string             `json:"conversionLabel" yaml:"conversionLabel"`
	ServerContainer contemplate.Config `json:"serverContainer" yaml:"serverContainer"`
}

type GoogleAdsRemarketing added in v0.4.2

type GoogleAdsRemarketing struct {
	Enabled                bool `json:"enabled" yaml:"enabled"`
	EnableConversionLinker bool `json:"enableConversionLinker" yaml:"enableConversionLinker"`
}

type GoogleAnalytics added in v0.3.0

type GoogleAnalytics struct {
	Enabled         bool               `json:"enabled" yaml:"enabled"`
	GoogleGTag      GoogleGTag         `json:"googleGTag" yaml:"googleGTag"`
	GoogleConsent   GoogleConsent      `json:"googleConsent" yaml:"googleConsent"`
	WebContainer    contemplate.Config `json:"webContainer" yaml:"webContainer"`
	ServerContainer contemplate.Config `json:"serverContainer" yaml:"serverContainer"`
}

type GoogleConsent added in v0.4.0

type GoogleConsent struct {
	Enabled bool   `json:"enabled" yaml:"enabled"`
	Mode    string `json:"mode" yaml:"mode"`
}

type GoogleGTag added in v0.3.1

type GoogleGTag struct {
	Enabled        bool  `json:"enabled" yaml:"enabled"`
	Priority       int64 `json:"priority" yaml:"priority"`
	EcommerceItems bool  `json:"ecommerceItems" yaml:"ecommerceItems"`
}

type GoogleTag added in v0.3.0

type GoogleTag struct {
	TagID        string     `json:"tagId" yaml:"tagId"`
	DebugMode    bool       `json:"debugMode" yaml:"debugMode"`
	SendPageView bool       `json:"sendPageView" yaml:"sendPageView"`
	TypeScript   TypeScript `json:"typeScript" yaml:"typeScript"`
}

type GoogleTagManager added in v0.3.0

type GoogleTagManager struct {
	AccountID       string                    `json:"accountId" yaml:"accountId"`
	WebContainer    GoogleTagManagerContainer `json:"webContainer" yaml:"webContainer"`
	ServerContainer GoogleTagManagerContainer `json:"serverContainer" yaml:"serverContainer"`
}

type GoogleTagManagerContainer added in v0.3.0

type GoogleTagManagerContainer struct {
	TagID       string `json:"tagId" yaml:"tagId"`
	ContainerID string `json:"containerId" yaml:"containerId"`
	WorkspaceID string `json:"workspaceId" yaml:"workspaceId"`
}

type TypeScript added in v0.3.0

type TypeScript struct {
	contemplate.Config `json:",inline" yaml:",squash"`
	OutputPath         string `json:"outputPath" yaml:"outputPath"`
}

type Umami added in v0.3.0

type Umami struct {
	Enabled         bool               `json:"enabled" yaml:"enabled"`
	Domain          string             `json:"domain" yaml:"domain"`
	WebsiteID       string             `json:"websiteId" yaml:"websiteId"`
	EndpointURL     string             `json:"endpointUrl" yaml:"endpointUrl"`
	GoogleConsent   GoogleConsent      `json:"googleConsent" yaml:"googleConsent"`
	ServerContainer contemplate.Config `json:"serverContainer" yaml:"serverContainer"`
}

Jump to

Keyboard shortcuts

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