Event API
  • Introduction
  • JavaScript API
    • Library installation
    • Event registration
    • Visitor identification
    • Dynamic parameters
    • Examples
  • REST API
    • Event registration
    • Visitor identification
    • Dynamic parameters
    • Examples
Powered by GitBook
On this page
  • Supported Events
  • Supported properties
  1. JavaScript API

Event registration

Call the following JavaScript from your place on the Web page to track the event:

<script>
    _txq.push(['track', 'EVENT_NAME', PROPERTIES]);
</script>

where:

  • EVENT_NAME is the name of the event (required).

  • PROPERTIES is a set of properties (optional parameter).

Supported Events

  • PageView - view the page.

  • ViewContent - view content of the store.

Supported properties

  • content_ids - an array of product identifiers of the store.

  • product_catalog_id - an array of product catalog identifiers of the store.

PreviousLibrary installationNextVisitor identification

Last updated 5 years ago