You must implement a tracking script if you are implementing with Tipser APIs. Script tracking enables Tipser to provide you with a data dashboard of full-funnel customer actions. Currently Tipser only supports defined tracking events.

Base URLs

All APIs (except the Analytics API) use the same base URLs in two different environments.

Production Environment: api.tipser.com
Dev Environment: api.dev.tipser.com

For the Analytics API use the following base URLs for testing and implementation:

Production Environment: analytics.tipser.com
Dev Environment: analytics.dev.tipser.com

Session IDs

You'll need to generate a sessionId and pull it through each tracking request. This sessionId corresponds to one shopper's session and links tracking events generated from Tipser elements to tracking events generated from API components.

The sessionId is crucial for a seamless API integration because it prevents the data from being broken up by source.

For information about how to work with sessionIds, refer to the Send Tracking Event API Reference.

Event handling recommendations

Tipser elements send tracking events to the Analytics API by default. We recommend implementing your event handling based off of how Tipser elements handle events, and modifying the approach needed.

Supported events quick reference

ActionTargetEvent nameDescription
ViewCart-tabview_cart-tabA cart tab component was rendered on the page visited by the user. This is not necessarily in the viewport.
ViewCartview_cartUser is presented with the cart phase.
ViewCollectionview_collectionA collection component, or part of it, was in the viewport of the user's browser.
ViewProductview_product_detailsThe user visited the product detail page, either as a modal or the embedded product page. In the current implementation, this is sent together with the click event.
ViewProduct tileview_product_tileA product tile component was in the viewport of the user's browser. If it disappears and reappears in the user's viewport, this generates another instance of the event.
ViewShopview_shopA store component, or part of it, was in the viewport of the user's browser.
ClickPayment buttonclick_payment_buttonUser has clicked the payment button.
ClickProduct tileclick_productThe user clicked a product tile component. This can be a standalone product tile or from a collection.
CartProductadd_to_cartA product was added to the cart, or the quantity of the product in the cart was increased. Increasing the quantity by any number generates one add_to_cart event, which contains the quantity in a parameter.
CartProductremove_from_cartA product was removed form the cart, or the quantity of the product in the cart was decreased. Decreasing the quantity by any number generates one remove_from_cart event, which contains the quantity in a parameter.
CartPaymentview_checkoutThe user opened the checkout view. Generates an instance of this event every time the user enters this view or refreshes this page.
PurchaseOrderpurchase_completedThe user has seen the purchase confirmation page. Generates an instance of this event every time the user enters this view or refreshes this page.
ConsentData policyUser has accepted the data policy.
RejectData policyUser has rejected the data policy.

Block tracking events

❗️

If a user rejects the data policy, you'll need to block the API from sending tracking events for this user.

tw-track events cannot be disabled with the setting disableAnalytics: true.