Versions in this module Expand all Collapse all v3 v3.0.0 Jan 9, 2023 Changes in this version + const APP_ID + const COLOR_DEPTH + const CONTEXT + const CONTEXT_ENCODED + const DATA + const DEFAULT_BASE_64 + const DEFAULT_BYTE_LIMIT_GET + const DEFAULT_BYTE_LIMIT_POST + const DEFAULT_DB_NAME + const DEFAULT_PLATFORM + const DEFAULT_PROTOCOL + const DEFAULT_REQ_TYPE + const DEFAULT_SEND_LIMIT + const DOMAIN_UID + const EID + const EVENT + const EVENT_ECOMM + const EVENT_ECOMM_ITEM + const EVENT_PAGE_VIEW + const EVENT_STRUCTURED + const EVENT_UNSTRUCTURED + const GET_PROTOCOL_PATH + const IP_ADDRESS + const LANGUAGE + const NAMESPACE + const NETWORK_UID + const PAGE_REFR + const PAGE_TITLE + const PAGE_URL + const PLATFORM + const POST_CONTENT_TYPE + const POST_PROTOCOL_VENDOR + const POST_PROTOCOL_VERSION + const POST_STM_BYTES + const POST_WRAPPER_BYTES + const RESOLUTION + const SCHEMA + const SCHEMA_CONTEXTS + const SCHEMA_PAYLOAD_DATA + const SCHEMA_SCREEN_VIEW + const SCHEMA_UNSTRUCT_EVENT + const SCHEMA_USER_TIMINGS + const SENT_TIMESTAMP + const SE_ACTION + const SE_CATEGORY + const SE_LABEL + const SE_PROPERTY + const SE_VALUE + const SV_ID + const SV_NAME + const TIMESTAMP + const TIMEZONE + const TI_ITEM_CATEGORY + const TI_ITEM_CURRENCY + const TI_ITEM_ID + const TI_ITEM_NAME + const TI_ITEM_PRICE + const TI_ITEM_QUANTITY + const TI_ITEM_SKU + const TRACKER_VERSION + const TRUE_TIMESTAMP + const TR_AFFILIATION + const TR_CITY + const TR_COUNTRY + const TR_CURRENCY + const TR_ID + const TR_SHIPPING + const TR_STATE + const TR_TAX + const TR_TOTAL + const T_VERSION + const UID + const UNSTRUCTURED + const UNSTRUCTURED_ENCODED + const USERAGENT + const UT_CATEGORY + const UT_LABEL + const UT_TIMING + const UT_VARIABLE + const VIEWPORT + func OptionAppId(appId string) func(t *Tracker) + func OptionBase64Encode(base64Encode bool) func(t *Tracker) + func OptionByteLimitGet(byteLimitGet int) func(e *Emitter) + func OptionByteLimitPost(byteLimitPost int) func(e *Emitter) + func OptionCallback(callback func(successCount []CallbackResult, failureCount []CallbackResult)) func(e *Emitter) + func OptionHttpClient(client *http.Client) func(e *Emitter) + func OptionNamespace(namespace string) func(t *Tracker) + func OptionPlatform(platform string) func(t *Tracker) + func OptionProtocol(protocol string) func(e *Emitter) + func OptionRequestType(requestType string) func(e *Emitter) + func OptionSendLimit(sendLimit int) func(e *Emitter) + func OptionSubject(subject *Subject) func(t *Tracker) + func RequireCollectorUri(collectorUri string) func(e *Emitter) + func RequireEmitter(emitter *Emitter) func(t *Tracker) + func RequireStorage(storage storageiface.Storage) func(e *Emitter) + type CallbackResult struct + Count int + Status int + type EcommerceTransactionEvent struct + Affiliation *string + City *string + Contexts []SelfDescribingJson + Country *string + Currency *string + EventId *string + Items []EcommerceTransactionItemEvent + OrderId *string + Shipping *float64 + State *string + Subject *Subject + TaxValue *float64 + Timestamp *int64 + TotalValue *float64 + TrueTimestamp *int64 + func (e *EcommerceTransactionEvent) Init() + func (e *EcommerceTransactionEvent) SetSubjectIfNil(subject *Subject) + func (e EcommerceTransactionEvent) Get() payload.Payload + type EcommerceTransactionItemEvent struct + Category *string + Contexts []SelfDescribingJson + EventId *string + Name *string + Price *float64 + Quantity *int64 + Sku *string + Subject *Subject + func (e *EcommerceTransactionItemEvent) Init() + func (e *EcommerceTransactionItemEvent) SetSubjectIfNil(subject *Subject) + func (e EcommerceTransactionItemEvent) Get() payload.Payload + type Emitter struct + ByteLimitGet int + ByteLimitPost int + Callback func(successCount []CallbackResult, failureCount []CallbackResult) + CollectorUri string + CollectorUrl url.URL + HttpClient *http.Client + Protocol string + RequestType string + SendChannel chan bool + SendLimit int + Storage storageiface.Storage + func InitEmitter(options ...func(*Emitter)) *Emitter + func (e *Emitter) Add(payload payload.Payload) + func (e *Emitter) Flush() + func (e *Emitter) SetCollectorUri(collectorUri string) + func (e *Emitter) SetProtocol(protocol string) + func (e *Emitter) SetRequestType(requestType string) + func (e *Emitter) Stop() + func (e Emitter) GetCollectorUrl() string + func (e Emitter) IsSending() bool + type PageViewEvent struct + Contexts []SelfDescribingJson + EventId *string + PageTitle *string + PageUrl *string + Referrer *string + Subject *Subject + Timestamp *int64 + TrueTimestamp *int64 + func (e *PageViewEvent) Init() + func (e *PageViewEvent) SetSubjectIfNil(subject *Subject) + func (e PageViewEvent) Get() payload.Payload + type ScreenViewEvent struct + Contexts []SelfDescribingJson + EventId *string + Id *string + Name *string + Subject *Subject + Timestamp *int64 + TrueTimestamp *int64 + func (e *ScreenViewEvent) Init() + func (e ScreenViewEvent) Get() SelfDescribingEvent + type SelfDescribingEvent struct + Contexts []SelfDescribingJson + Event *SelfDescribingJson + EventId *string + Subject *Subject + Timestamp *int64 + TrueTimestamp *int64 + func (e *SelfDescribingEvent) Init() + func (e *SelfDescribingEvent) SetSubjectIfNil(subject *Subject) + func (e SelfDescribingEvent) Get(base64Encode bool) payload.Payload + type SelfDescribingJson struct + func InitSelfDescribingJson(schema string, data interface{}) *SelfDescribingJson + func (s *SelfDescribingJson) SetDataWithMap(data map[string]interface{}) + func (s *SelfDescribingJson) SetDataWithPayload(data payload.Payload) + func (s *SelfDescribingJson) SetDataWithSelfDescribingJson(data SelfDescribingJson) + func (s SelfDescribingJson) Get() map[string]interface{} + func (s SelfDescribingJson) String() string + type SendResult struct + type StructuredEvent struct + Action *string + Category *string + Contexts []SelfDescribingJson + EventId *string + Label *string + Property *string + Subject *Subject + Timestamp *int64 + TrueTimestamp *int64 + Value *float64 + func (e *StructuredEvent) Init() + func (e *StructuredEvent) SetSubjectIfNil(subject *Subject) + func (e StructuredEvent) Get() payload.Payload + type Subject struct + func InitSubject() *Subject + func (s Subject) Get() map[string]string + func (s Subject) SetColorDepth(depth int) + func (s Subject) SetDomainUserId(domainUserId string) + func (s Subject) SetIpAddress(ipAddress string) + func (s Subject) SetLanguage(language string) + func (s Subject) SetNetworkUserId(networkUserId string) + func (s Subject) SetScreenResolution(width int, height int) + func (s Subject) SetTimeZone(timezone string) + func (s Subject) SetUserId(userId string) + func (s Subject) SetUseragent(useragent string) + func (s Subject) SetViewPort(width int, height int) + type TimingEvent struct + Category *string + Contexts []SelfDescribingJson + EventId *string + Label *string + Subject *Subject + Timestamp *int64 + Timing *int64 + TrueTimestamp *int64 + Variable *string + func (e *TimingEvent) Init() + func (e TimingEvent) Get() SelfDescribingEvent + type Tracker struct + AppId string + Base64Encode bool + Emitter *Emitter + Namespace string + Platform string + Subject *Subject + func InitTracker(options ...func(*Tracker)) *Tracker + func (t *Tracker) BlockingFlush(flushAttempts int, flushSleepTimeMs int) int + func (t *Tracker) SetAppId(appId string) + func (t *Tracker) SetBase64Encode(base64Encode bool) + func (t *Tracker) SetEmitter(emitter *Emitter) + func (t *Tracker) SetNamespace(namespace string) + func (t *Tracker) SetPlatform(platform string) + func (t *Tracker) SetSubject(subject *Subject) + func (t Tracker) FlushEmitter() + func (t Tracker) TrackEcommerceTransaction(e EcommerceTransactionEvent) + func (t Tracker) TrackPageView(e PageViewEvent) + func (t Tracker) TrackScreenView(e ScreenViewEvent) + func (t Tracker) TrackSelfDescribingEvent(e SelfDescribingEvent) + func (t Tracker) TrackStructEvent(e StructuredEvent) + func (t Tracker) TrackTiming(e TimingEvent) Other modules containing this package github.com/snowplow/snowplow-golang-tracker github.com/snowplow/snowplow-golang-tracker/v2