com.snowplowanalytics.snowplow.scalatracker

Tracker

class Tracker extends AnyRef

Tracker class

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Tracker
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Tracker(emitters: Seq[TEmitter], namespace: String, appId: String, encodeBase64: Boolean = true)

    emitters

    Sequence of emitters to which events are passed

    namespace

    Tracker namespace

    appId

    ID of the application

    encodeBase64

    Whether to encode JSONs

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def enableEc2Context(): Unit

    Adds EC2 context to each sent event This will also make tracker to wait for complete AWS EC2 request before send all events

  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. def setSubject(subject: Subject): Tracker

    Set the Subject for the tracker The subject's configuration will be attached to every event

    Set the Subject for the tracker The subject's configuration will be attached to every event

    subject

    user which the Tracker will track

    returns

    The tracker instance

  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  20. def toString(): String

    Definition Classes
    AnyRef → Any
  21. def trackPageView(pageUrl: String, pageTitle: Option[String] = None, referrer: Option[String] = None, contexts: Seq[SelfDescribingJson] = Nil, timestamp: Option[Timestamp] = None): Tracker

    Record view of web page

    Record view of web page

    pageUrl

    viewed URL

    pageTitle

    page's title

    referrer

    referrer URL

    contexts

    list of additional contexts

    timestamp

    optional user-provided timestamp (ms) for the event

    returns

    the tracker instance

  22. def trackSelfDescribingEvent(unstructEvent: SelfDescribingJson, contexts: Seq[SelfDescribingJson] = Nil, timestamp: Option[Timestamp] = None): Tracker

    Track a Snowplow unstructured event Alias for trackUnstructEvent

    Track a Snowplow unstructured event Alias for trackUnstructEvent

    unstructEvent

    self-describing JSON for the event

    contexts

    list of additional contexts

    timestamp

    optional user-provided timestamp (ms) for the event

    returns

    The tracker instance

  23. def trackStructEvent(category: String, action: String, label: Option[String] = None, property: Option[String] = None, value: Option[Double] = None, contexts: Seq[SelfDescribingJson] = Nil, timestamp: Option[Timestamp] = None): Tracker

    Track a Snowplow structured event

    Track a Snowplow structured event

    category

    event category mapped to se_ca

    action

    event itself mapped to se_ac

    label

    optional object label mapped to se_la

    property

    optional event/object property mapped to se_pr

    value

    optional object value mapped to se_va

    contexts

    list of additional contexts

    timestamp

    optional user-provided timestamp (ms) for the event

    returns

    the tracker instance

  24. def trackUnstructEvent(unstructEvent: SelfDescribingJson, contexts: Seq[SelfDescribingJson] = Nil, timestamp: Option[Timestamp] = None): Tracker

    Track a Snowplow unstructured event

    Track a Snowplow unstructured event

    unstructEvent

    self-describing JSON for the event

    contexts

    list of additional contexts

    timestamp

    optional user-provided timestamp (ms) for the event

    returns

    The tracker instance

  25. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped