agma

package
v2.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

README

agma Analytics

In order to use the Agma Analytics Adapter, please adjust the accounts / endpoint with the data provided by agma (https://www.agma-mmc.de).

Configuration

analytics:
    agma:
        # Required: enable the module
        enabled: true
        # Required: set the accounts you want to track
        accounts:
        - code: "my-code" # Required: provied by agma
          publisher_id: "123" # Required: Exchange specific publisher_id
          site_app_id: "openrtb2-site.id-or-app.id" # optional: scope to the publisher with an openrtb2 Site object id or App object id
        # Optional properties (advanced configuration)
        endpoint: 
            url: "https://go.pbs.agma-analytics.de/v1/prebid-server" # Check with agma if your site needs an extra url
            timeout: "2s"
            gzip: true
        buffers: # Flush events when (first condition reached)
            # Size of the buffer in bytes
            size: "2MB" # greater than 2MB (size using SI standard eg. "44kB", "17MB")
            count : 100 # greater than 100 events
            timeout: "15m" # greater than 15 minutes (parsed as golang duration)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModule

func NewModule(httpClient *http.Client, cfg config.AgmaAnalytics, clock clock.Clock) (analytics.Module, error)

Types

type AgmaLogger

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

func (*AgmaLogger) LogAmpObject

func (l *AgmaLogger) LogAmpObject(event *analytics.AmpObject)

func (*AgmaLogger) LogAuctionObject

func (l *AgmaLogger) LogAuctionObject(event *analytics.AuctionObject)

func (*AgmaLogger) LogCookieSyncObject

func (l *AgmaLogger) LogCookieSyncObject(event *analytics.CookieSyncObject)

func (*AgmaLogger) LogNotificationEventObject

func (l *AgmaLogger) LogNotificationEventObject(event *analytics.NotificationEvent)

func (*AgmaLogger) LogSetUIDObject

func (l *AgmaLogger) LogSetUIDObject(event *analytics.SetUIDObject)

func (*AgmaLogger) LogVideoObject

func (l *AgmaLogger) LogVideoObject(event *analytics.VideoObject)

type EventType

type EventType string
const (
	EventTypeAuction EventType = "auction"
	EventTypeAmp     EventType = "amp"
	EventTypeVideo   EventType = "video"
)

Jump to

Keyboard shortcuts

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