Set the domain user ID
Set the network user ID
Track an ecommerce transaction and all items in that transaction Each item is represented by an EcommerceTransactionItem interface.
Log an self-describing (previously unstruct) event
Log an unstructured event
Adds contexts globally, contexts added here will be attached to all applicable events
An array containing either contexts or a conditional contexts
Merges a dictionary into payloadPairs
Adds a new payload dictionary to the existing one
Removes all global contexts
Removes previously added global context, performs a deep comparison of the contexts or conditional contexts
An array containing either contexts or a conditional contexts
Replace payloadPairs with a new dictionary
Resets all current payload pairs with a new dictionary of pairs
Set the application ID
An application ID which identifies the current application
Turn base 64 encoding on or off
Whether to encode payload
Set the color depth
A color depth value as string
Set the IP address
An IP Address string
Set the language
A language string e.g. 'en-UK'
Set the platform
A valid Snowplow platform value
Set the screen resolution
screen resolution width
screen resolution height
Set the timezone
A timezone string
Set the tracker namespace
The trackers namespace
Set the tracker version
The version of the current tracker
Set the user ID
The custom user id
Set the Useragent
A useragent string
Set the viewport dimensions
viewport width
viewport height
Track an ad being clicked
(required) The link's target URL
Identifier for the ad click
The cost model. 'cpa', 'cpc', or 'cpm'
Cost
Identifier for the ad banner displayed
Identifier for the ad zone
Identifier for a particular ad impression
Identifier for the advertiser
Identifier for the campaign which the banner belongs to
Custom contexts relating to the event
Timestamp of the event
A callback function triggered after event is tracked
Payload
Track an ad conversion event
Identifier for the ad conversion event
The cost model. 'cpa', 'cpc', or 'cpm'
Cost
The name you supply for the group of objects you want to track
A string that is uniquely paired with each category
Describes the object of the conversion or the action performed on it
Revenue attributable to the conversion at time of conversion
Identifier for the advertiser
Identifier for the campaign which the banner belongs to
Custom contexts relating to the event
Timestamp of the event
A callback function triggered after event is tracked
Payload
Track an ad being served
Identifier for a particular ad impression
The cost model. 'cpa', 'cpc', or 'cpm'
Cost
URL ad pointing to
Identifier for the ad banner displayed
Identifier for the ad zone
Identifier for the advertiser
Identifier for the campaign which the banner belongs to
Custom contexts relating to the event
Timestamp of the event
A callback function triggered after event is tracked
Payload
Track an add-to-cart event
Item's SKU code.
Product name.
Product category.
Product price.
Quantity added.
Product price currency.
Context relating to the event.
Timestamp of the event
A callback function triggered after event is tracked
Payload
Track a consent granted event
ID number associated with document.
Version number of document.
Name of document.
Description of document.
Date-time when consent expires.
Context relating to the event.
Timestamp of the event.
A callback function triggered after event is tracked
Payload
Track a consent withdrawn event
Indicates user withdraws consent for all documents.
ID number associated with document.
Version number of document.
Name of document.
Description of document.
Context relating to the event.
Timestamp of the event.
A callback function triggered after event is tracked
Payload
Track an ecommerce transaction
Internal unique order id number for this transaction.
Partner or store affiliation.
Total amount of the transaction.
Tax amount of the transaction.
Shipping charge for the transaction.
City to associate with transaction.
State to associate with transaction.
Country to associate with transaction.
Currency to associate with this transaction.
Context relating to the event.
Timestamp of the event
A callback function triggered after event is tracked
Payload
Track an ecommerce transaction item
Required Order ID of the transaction to associate with item.
Item's SKU code.
Product name.
Product category.
Product price.
Purchase quantity.
Product price currency.
Context relating to the event.
Timestamp of the event
A callback function triggered after event is tracked
Payload
Track the value of a form field changing or receiving focus
The schema type of the event
The parent form ID
ID of the changed element
"INPUT", "TEXTAREA", or "SELECT"
Type of the changed element if its type is "INPUT"
List of classes of the changed element
The new value of the changed element
Context relating to the event.
Timestamp of the event
A callback function triggered after event is tracked
Payload
Track a form submission event
ID of the form
Classes of the form
Mutable elements within the form
Context relating to the event.
Timestamp of the event
A callback function triggered after event is tracked
Payload
Log the link or click with the server
innerHTML of the link
Custom contexts relating to the event
Timestamp of the event
A callback function triggered after event is tracked
Payload
Log that a user is still viewing a given page by sending a page ping
Current page URL
The page title to attach to this page ping
URL users came from
Minimum page x offset seen in the last ping period
Maximum page x offset seen in the last ping period
Minimum page y offset seen in the last ping period
Maximum page y offset seen in the last ping period
Custom contexts relating to the event
Timestamp of the event
A callback function triggered after event is tracked
Payload
Log the page view / visit
Current page URL
The user-defined page title to attach to this page view
URL users came from
Custom contexts relating to the event
Timestamp of the event
A callback function triggered after event is tracked
Payload
Track a remove-from-cart event
Item's SKU code.
Product name.
Product category.
Product price.
Quantity removed.
Product price currency.
Context relating to the event.
Timestamp of the event
A callback function triggered after event is tracked
Payload
Track a screen view unstructured event
The name of the screen
The ID of the screen
Contexts relating to the event
Timestamp of the event
A callback function triggered after event is tracked
Payload
Track an internal search event
Search terms
Search filters
Number of results
Number of results displayed on page
Context relating to the event.
Timestamp of the event
Payload
Track a social event
Social action performed
Social network
Object of the social action e.g. the video liked, the tweet retweeted
Custom contexts relating to the event
Timestamp of the event
A callback function triggered after event is tracked
Payload
Track a structured event
The name you supply for the group of objects you want to track
A string that is uniquely paired with each category, and commonly used to define the type of user interaction for the web object
An optional string to provide additional dimensions to the event data
Describes the object or the action performed on it, e.g. quantity of item added to basket
An integer that you can use to provide numerical data about the user event
Custom contexts relating to the event
Timestamp of the event
A callback function triggered after event is tracked
Payload
Generated using TypeDoc
Set a persistent key-value pair to be added to every payload
Field name
Field value