tagmanager

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 4 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(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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context) (*tagmanager.Service, error)

func (*Client) Tag

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

func (*Client) Trigger

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

func (*Client) UpsertClientTrigger

func (c *Client) UpsertClientTrigger(ctx context.Context, name, clientName string) (*tagmanager.Trigger, error)

func (*Client) UpsertConstantVariable

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

func (*Client) UpsertCustomEventTrigger

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

func (*Client) UpsertEventModelVariable

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

func (*Client) UpsertFolder

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

func (*Client) UpsertGA4Client

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

func (*Client) UpsertGA4ServerTag

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

func (*Client) UpsertGA4WebTag

func (c *Client) UpsertGA4WebTag(ctx context.Context, name string, parameters []string, measurementID *tagmanager.Variable, trigger *tagmanager.Trigger) (*tagmanager.Tag, error)

func (*Client) UpsertGTMClient

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

func (*Client) UpsertVariable

func (c *Client) UpsertVariable(ctx context.Context, obj *tagmanager.Variable) (*tagmanager.Variable, error)

func (*Client) Variable

func (c *Client) Variable(ctx context.Context, 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

Jump to

Keyboard shortcuts

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