Anonymous User Tracking - StrikeX Events

JavaScript API Integration Documentation

The JS API Integration Guide (for Custom Script Installation) provides step-by-step instructions for integrating SaleAssist’s JavaScript API into your website. It explains how to use various methods to identify visitors, track custom events, and implement SaleAssist’s tracking features after manually installing the script.

Table of Contents

  1. Visitor Identification

  2. Events Tracking 2.1. View Event 2.2. Update Cart Event 2.3. Checkout Event 2.4. Buy Event 2.5. Product View Event 2.6. Category View Event 2.7. Custom Events 2.8. High Intent Users

1. Visitor Identification

Use nitro.identify method to identify visitors by providing their email, phone, and name.

nitro.identify("<visitor_email>", "<visitor_phone>", "<visitor_name>");

2. Events Tracking

Different events can be tracked with the help of methods enlisted below:

2.1. View Event

Use nitro.view method to track page views.

// Example view event data
view_data = {
    page: "https://someurl.com"
}

// Track view event
nitro.view(view_data);

2.2. Update Cart Event on add to cart

Use nitro.updatecart method to track when items are added to the cart or removed from the cart. line_items should contain all items currently in the cart. While sending update cart event send all the line items currently in cart. Trigger this event whenever anything in cart changes so that we can capture the timeline of cart activity in order.

2.3. Checkout Event

Use nitro.checkout method to track checkout events.

2.4. Buy Event

Use nitro.buy method to track purchase events.

2.5. Product View Event

Use nitro.productView method to track product view events.

2.6. Category View Event

Use nitro.categoryView method to track category view events.

2.7. Custom Events

Use nitro.track method to track custom events.

  • Replace <EVENT_NAME> with the name of your custom event and EVENT_VALUE with the corresponding value.


2.8. High Intent Users -

Events to enter funnel = ["addtocart", "updatecart", "checkout"]

Events to exit funnel = "buy"

Last updated