Class/Object

com.snowplowanalytics.snowplow.scalatracker

Tracker

Related Docs: object Tracker | package scalatracker

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

    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: 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. final def asInstanceOf[T0]: T0

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

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

    Permalink

    Adds EC2 context to each sent event Blocks event queue until either context resolved or timed out

  7. def enableGceContext(): Unit

    Permalink

    Adds GCP context to each sent event Blocks event queue until either context resolved or timed out

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  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. def hashCode(): Int

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

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

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

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

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

    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

    subject

    user which the Tracker will track

    returns

    The tracker instance

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

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. 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): Tracker

    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

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

    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

  22. 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): Tracker

    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

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

    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

  24. 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

    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

  25. 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): Tracker

    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

  26. 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): Tracker

    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

  27. final def wait(): Unit

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

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

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

Deprecated Value Members

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

    Permalink

    Track a Snowplow unstructured event Alias for trackSelfDescribingEvent

    Track a Snowplow unstructured event Alias for trackSelfDescribingEvent

    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

    Annotations
    @deprecated
    Deprecated

    (Since version 0.4.0) Use Tracker#trackSelfDescribingEvent instead

Inherited from AnyRef

Inherited from Any

Ungrouped