Rapid UI Tracking

Description

Out of the box, Rapid UI will help with most of your tracking needs. However, some events will need to be added manually to tie into your custom implementation. Such examples include:

Track Page Load events

Please look to include the following JavaScript in your solution's webpages. To understand the parameters being passed, please review the documentation at https://handlebars-ui.hawksearch.com/latest/classes/Services.TrackingService.html#trackPageLoad

HawkSearch.services.tracking.trackPageLoad(1, 'uniqueProductId');
HawkSearch.services.tracking.trackPageLoad(5);

📘

Reference Use Only

Page type values and more details can be found here: https://developerdocs.hawksearch.com/docs/event-tracking-api#page-load-event

Track Add to Cart events

If your site is an eCommerce site, please look to add an event handler in your solution's product detail pages, or anywhere you make use of an add to cart button. To understand the parameters being passed, please review the documentation at https://handlebars-ui.hawksearch.com/latest/classes/Services.TrackingService.html#trackAddToCart

HawkSearch.services.tracking.trackAddToCart('uniqueProductId', 1, 123.45, 'USD');

📘

Reference Use Only

Additional details on parameters can be found here: https://developerdocs.hawksearch.com/docs/event-tracking-api#add-to-cart-event

Track Multiple Add to Cart events

There may be instances where a user is able to add many items to the cart with one click. This method will allow you to call the Add to Cart tracking service with multiple items. To understand the parameters being passed, please review the documentation at https://handlebars-ui.hawksearch.com/latest/classes/Services.TrackingService.html#trackAddToCartMultiple

let items = [
    {
      'productId': 'uniqueProductId',
      'quantity': 1,
      'price': 123.45,
      'currencyIsoCode': 'USD'
    },{
      'productId': 'uniqueProductId2',
      'quantity': 2,
      'price': 123.45,
      'currencyIsoCode': 'USD'
    }
];
HawkSearch.services.tracking.trackAddToCartMultiple(items);

📘

Reference Use Only

Additional details on parameters can be found here: https://developerdocs.hawksearch.com/docs/event-tracking-api#add-to-cart-multiple-event

Track Order events

In order to track sales events, the trackOrder function is available for after a user has placed an order. To understand the parameters being passed in the request, please review the documentation at https://handlebars-ui.hawksearch.com/latest/classes/Services.TrackingService.html#trackOrder

let items = [
  	{
      'price': 123.45,
      'productId': 'uniqueProductId',
      'quantity': 1
		},{
      'price':123.45,
      'productId': 'uniqueProductId2',
      'quantity': 2
    }
];
HawkSearch.services.tracking.trackOrder('orderId', items, 370.35, 48.15, 418.50, 'USD');

📘

Reference Use Only

Additional details on parameters can be found here: https://developerdocs.hawksearch.com/docs/event-tracking-api#sale-event