tracking

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package tracking is a reference adformat.Binding adapter (§3.2.16) for protocol-agnostic fire-and-forget impression/click tracking pixels, applicable to any Format.Kind (native/banner/push/direct). It carries no new type in adformat's core: a tracking pixel is just a Field{Type: FieldURLType}, optionally repeated via Field.MinCount/MaxCount (§3.2.15) for several simultaneous verification vendors, bound to a specific event via this package's Tracker Binding. See adformat/vasttracking for the VAST-specific event dictionary used by in-stream video creatives.

Index

Constants

View Source
const (
	EventImpression = "impression"
	EventClick      = "click"
)

Tracking events.

View Source
const Target = "tracking"

Target identifies this adapter's Binding.Target value.

Variables

This section is empty.

Functions

func Tracker

func Tracker(event string) adformat.Binding

Tracker builds a Binding associating a Field with a tracking event.

Types

type Params

type Params struct {
	Event string `json:"event"`
}

Params is the Binding.Params shape for a tracking pixel Field.

func Get

func Get(f adformat.Field) (Params, bool)

Get decodes the tracking binding of f, if any.

Jump to

Keyboard shortcuts

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