tagmanager

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, accountID, containerID, workspaceID, measurementID string, opts ...ClientOption) (*Client, error)

func (*Client) AccountID

func (c *Client) AccountID() string

func (*Client) AccountPath

func (c *Client) AccountPath() string

func (*Client) Client

func (c *Client) Client(name string) (*tagmanager.Client, error)

func (*Client) ContainerID

func (c *Client) ContainerID() string

func (*Client) ContainerPath

func (c *Client) ContainerPath() string

func (*Client) Folder

func (c *Client) Folder(name string) (*tagmanager.Folder, error)

func (*Client) FolderName

func (c *Client) FolderName() string

func (*Client) MeasurementID

func (c *Client) MeasurementID() string

func (*Client) Notes

func (c *Client) Notes() string

func (*Client) Service

func (c *Client) Service() *tagmanager.Service

func (*Client) Tag

func (c *Client) Tag(name string) (*tagmanager.Tag, error)

func (*Client) Trigger

func (c *Client) Trigger(name string) (*tagmanager.Trigger, error)

func (*Client) UpsertClientTrigger

func (c *Client) UpsertClientTrigger(name string, client *tagmanager.Client) (*tagmanager.Trigger, error)

func (*Client) UpsertConstantVariable

func (c *Client) UpsertConstantVariable(name, value string) (*tagmanager.Variable, error)

func (*Client) UpsertCustomEventTrigger

func (c *Client) UpsertCustomEventTrigger(name string) (*tagmanager.Trigger, error)

func (*Client) UpsertEventModelVariable

func (c *Client) UpsertEventModelVariable(name string) (*tagmanager.Variable, error)

func (*Client) UpsertFolder

func (c *Client) UpsertFolder(name string) (*tagmanager.Folder, error)

func (*Client) UpsertGA4Client

func (c *Client) UpsertGA4Client(name string) (*tagmanager.Client, error)

func (*Client) UpsertGA4ServerTag

func (c *Client) UpsertGA4ServerTag(name string, measurementID *tagmanager.Variable, trigger *tagmanager.Trigger) (*tagmanager.Tag, error)

func (*Client) UpsertGA4WebTag

func (c *Client) UpsertGA4WebTag(name string, eventSettings *tagmanager.Variable, measurementID *tagmanager.Variable, trigger *tagmanager.Trigger) (*tagmanager.Tag, error)

func (*Client) UpsertGTEventSettingsVariable added in v0.1.1

func (c *Client) UpsertGTEventSettingsVariable(name string, variables map[string]*tagmanager.Variable) (*tagmanager.Variable, error)

func (*Client) UpsertGTMClient

func (c *Client) UpsertGTMClient(name, webContainerMeasurementID string) (*tagmanager.Client, error)

func (*Client) UpsertGoogleTagSettingsVariable added in v0.1.3

func (c *Client) UpsertGoogleTagSettingsVariable(name string, variables map[string]*tagmanager.Variable) (*tagmanager.Variable, error)

func (*Client) UpsertGoogleTagWebTag added in v0.1.3

func (c *Client) UpsertGoogleTagWebTag(name string, measurementID *tagmanager.Variable, configSettings *tagmanager.Variable) (*tagmanager.Tag, error)

func (*Client) UpsertVariable

func (c *Client) UpsertVariable(variable *tagmanager.Variable) (*tagmanager.Variable, error)

func (*Client) Variable

func (c *Client) Variable(name string) (*tagmanager.Variable, error)

func (*Client) WorkspaceID

func (c *Client) WorkspaceID() string

func (*Client) WorkspacePath

func (c *Client) WorkspacePath() string

type ClientOption

type ClientOption func(*Client)

func ClientWithClientOptions

func ClientWithClientOptions(v ...option.ClientOption) ClientOption

func ClientWithFolderName

func ClientWithFolderName(v string) ClientOption

func ClientWithNotes

func ClientWithNotes(v string) ClientOption

func ClientWithRequestQuota added in v0.1.1

func ClientWithRequestQuota(v int) ClientOption

Jump to

Keyboard shortcuts

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