Segmentry.Analytics.Context (segmentry v0.3.0)

Copy Markdown View Source

Shared context attached to an event — library info, IP, locale, app, device, and so on.

Use new/0 or new/1 to build one; both populate library with Segmentry's name and version automatically.

Summary

Types

t()

@type t() :: %Segmentry.Analytics.Context{
  active: term(),
  app: term(),
  campaign: term(),
  device: term(),
  groupId: term(),
  ip: term(),
  library: term(),
  locale: term(),
  location: term(),
  network: term(),
  os: term(),
  page: term(),
  referrer: term(),
  screen: term(),
  timezone: term(),
  traits: term(),
  userAgent: term()
}

Functions

new()

new(attrs)

update(context)