Skip to content

Analytics

View MD

Analytics is a fundamental part of Luigi’s Box services. It is designed not only to show the performance of individual services like Search or Recommender but also to collect user interactions from your website. This behavioral data is then fed to the AI models that drive ranking and product selection.

Integrating analytics is a separate step from making API calls for search or recommendations. Events must be sent independently to be recorded. Note that if you use Luigi’s Box frontend libraries, they handle sending these analytics events automatically. You can track events through a JavaScript-based collector that monitors a dataLayer object or by sending events directly to the API, which is ideal for backend or mobile app integrations.

Beyond choosing an integration path, it’s important to understand the concepts that make Luigi’s Box Analytics powerful.

  • The feedback loop: One of the primary goals of analytics is to provide feedback to the various AI models inside Luigi’s Box. For this to work effectively, it is vital that products are identified using the same identifier in analytics events as used when indexing the data. Changing the identity of an object will cause the models to forget everything they have learned about it historically.
  • Interaction data: A complete picture of user interaction is formed by several key pieces of information. This includes the List of products a user saw, the Query they typed, any Filters they applied to narrow the results, and any Conversions (like adding an item to the cart).
  • Bootstrapping with historical data: To shorten the initial ramp-up period, Luigi’s Box allows for the import of past or offline transactions. By uploading historical purchase data, services like Behavioral Recommendations and Personalization can achieve full effectiveness much faster, as the AI models are trained on this data.