Class/Object

com.snowplowanalytics.snowplow.scalatracker

Tracker

Related Docs: object Tracker | package scalatracker

Permalink

final case class Tracker[F[_]](emitters: NonEmptyList[Emitter[F]], namespace: String, appId: String, subject: Subject = Subject(), encodeBase64: Boolean = true, metadata: Option[SelfDescribingJson] = None)(implicit evidence$1: Monad[F], evidence$2: ClockProvider[F], evidence$3: UUIDProvider[F]) extends Product with Serializable

Tracker class

emitters

Sequence of emitters to which events are passed

namespace

Tracker namespace

appId

ID of the application

encodeBase64

Whether to encode JSONs

metadata

optionally a json containing the metadata context for the running instance

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tracker
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Tracker(emitters: NonEmptyList[Emitter[F]], namespace: String, appId: String, subject: Subject = Subject(), encodeBase64: Boolean = true, metadata: Option[SelfDescribingJson] = None)(implicit arg0: Monad[F], arg1: ClockProvider[F], arg2: UUIDProvider[F])

    Permalink

    emitters

    Sequence of emitters to which events are passed

    namespace

    Tracker namespace

    appId

    ID of the application

    encodeBase64

    Whether to encode JSONs

    metadata

    optionally a json containing the metadata context for the running instance

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val appId: String

    Permalink

    ID of the application

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val emitters: NonEmptyList[Emitter[F]]

    Permalink

    Sequence of emitters to which events are passed

  8. val encodeBase64: Boolean

    Permalink

    Whether to encode JSONs

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

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  13. val metadata: Option[SelfDescribingJson]

    Permalink

    optionally a json containing the metadata context for the running instance

  14. val namespace: String

    Permalink

    Tracker namespace

  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def setSubject(newSubject: Subject): Tracker[F]

    Permalink

    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

    newSubject

    user which the Tracker will track

    returns

    The tracker instance

  19. val subject: Subject

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

    Permalink
    Definition Classes
    AnyRef
  21. def trackAddToCart(sku: String, name: Option[String] = None, category: Option[String] = None, unitPrice: Option[Double] = None, quantity: Int, currency: Option[String] = None, contexts: List[SelfDescribingJson] = Nil, timestamp: Option[Timestamp] = None): F[Unit]

    Permalink

    Track an add-to-cart event

    Track an add-to-cart event

    sku

    Required. Item's SKU code.

    name

    Optional. Product name.

    category

    Optional. Product category.

    unitPrice

    Optional. Product price.

    quantity

    Required. Quantity added.

    currency

    Optional. Product price currency.

    contexts

    Optional. Context relating to the event.

    timestamp

    optional user-provided timestamp (ms) for the event

    returns

    the tracker instance

  22. def trackError(error: Throwable, contexts: List[SelfDescribingJson] = Nil, timestamp: Option[Timestamp] = None): F[Unit]

    Permalink

    Track application error NOTE: don't try to tracker Emitter failures with it

    Track application error NOTE: don't try to tracker Emitter failures with it

    error

    exception thrown by application code

    contexts

    Optional. Context relating to the event.

    timestamp

    optional user-provided timestamp (ms) for the event

    returns

    the tracker instance

  23. def trackPageView(pageUrl: String, pageTitle: Option[String] = None, referrer: Option[String] = None, contexts: Seq[SelfDescribingJson] = Nil, timestamp: Option[Timestamp] = None): F[Unit]

    Permalink

    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

  24. def trackRemoveFromCart(sku: String, name: Option[String] = None, category: Option[String] = None, unitPrice: Option[Double] = None, quantity: Double, currency: Option[String] = None, contexts: List[SelfDescribingJson] = Nil, timestamp: Option[Timestamp] = None): F[Unit]

    Permalink

    Track a remove-from-cart event

    Track a remove-from-cart event

    sku

    Required. Item's SKU code.

    name

    Optional. Product name.

    category

    Optional. Product category.

    unitPrice

    Optional. Product price.

    quantity

    Required. Quantity removed.

    currency

    Optional. Product price currency.

    contexts

    Optional. Context relating to the event.

    timestamp

    optional user-provided timestamp (ms) for the event

    returns

    the tracker instance

  25. def trackSelfDescribingEvent(unstructEvent: SelfDescribingJson, contexts: Seq[SelfDescribingJson] = Nil, timestamp: Option[Timestamp] = None): F[Unit]

    Permalink

    Track a Snowplow self-describing event

    Track a Snowplow self-describing 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

  26. 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): F[Unit]

    Permalink

    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

  27. def trackTransaction(orderId: String, affiliation: Option[String] = None, total: Double, tax: Option[Double] = None, shipping: Option[Double] = None, city: Option[String] = None, state: Option[String] = None, country: Option[String] = None, currency: Option[String] = None, contexts: Seq[SelfDescribingJson] = Nil, timestamp: Option[Timestamp] = None): F[Unit]

    Permalink

    Record view of transaction

    Record view of transaction

    orderId

    Order ID

    affiliation

    Transaction affiliation

    total

    Total transaction value

    tax

    Total tax included in transaction value

    shipping

    Delivery cost charged

    city

    Delivery address, city

    state

    Delivery address, state

    country

    Delivery address, country

    currency

    Currency

    contexts

    list of additional contexts

    timestamp

    optional user-provided timestamp (ms) for the event

    returns

    the tracker instance

  28. def trackTransactionItem(orderId: String, sku: String, name: Option[String] = None, category: Option[String] = None, price: Double, quantity: Int, currency: Option[String] = None, contexts: List[SelfDescribingJson] = Nil, timestamp: Option[Timestamp] = None): F[Unit]

    Permalink

    orderId

    Order ID

    sku

    Product SKU

    name

    Product name

    category

    Product category

    price

    Product unit price

    quantity

    Number of product in transaction

    currency

    The currency the price is expressed in

    contexts

    Custom context relating to the event

    timestamp

    optional user-provided timestamp (ms) for the event

    returns

    the tracker instance

  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped