Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Custom ¶ added in v0.14.0
type Custom struct { Timestamp time.Time PageUri uri.Uri Session Session Name string Keys []string Values []string }
Custom define a user defined event with custom properties.
func (*Custom) MarshalZerologObject ¶ added in v0.14.0
MarshalZerologObject implements zerolog.LogObjectMarshaler.
type PageView ¶
PageView define a page view event.
func (*PageView) MarshalZerologObject ¶ added in v0.14.0
MarshalZerologObject implements zerolog.LogObjectMarshaler.
type ReferrerUri ¶ added in v0.14.0
ReferrerUri wraps an uri.Uri to represent referrer URIs (absolute URI with no query args and fragment/hash). An empty referrer uri is considered as "direct".
func ParseReferrerUri ¶ added in v0.16.0
func ParseReferrerUri(rawUri []byte) (ReferrerUri, error)
ParseReferrerUri parses a referrer uri.
func (*ReferrerUri) HostOrDirect ¶ added in v0.14.0
func (ru *ReferrerUri) HostOrDirect() string
HostOrDirect returns uri host or "direct" if uri is empty.
func (ReferrerUri) String ¶ added in v0.16.0
func (ru ReferrerUri) String() string
String implements fmt.Stringer.
type Session ¶ added in v0.15.0
type Session struct { PageUri uri.Uri ReferrerUri ReferrerUri Client uaparser.Client CountryCode ipgeolocator.CountryCode VisitorId string SessionUuid uuid.UUID Utm UtmParams PageviewCount uint16 }
Session holds data about visitor's/user's session/visit.
func (*Session) MarshalZerologObject ¶ added in v0.15.0
MarshalZerologObject implements zerolog.LogObjectMarshaler.
func (*Session) SessionTime ¶ added in v0.15.0
SessionTime returns session creation date time.
type UtmParams ¶ added in v0.15.0
UtmParams holds Urchin Tracking Module (UTM) URL parameters. See https://en.wikipedia.org/wiki/UTM_parameters.
func (*UtmParams) MarshalZerologObject ¶ added in v0.15.0
MarshalZerologObject implements zerolog.LogObjectMarshaler.