HCL Commerce Version 9.1.4.0 or later

Integrating with HCL Unica Discover

To use HCL Unica Discover with your React Store, you must add the discoverui.js file to your store.

Prerequisites

Before you can integrate HCL Commerce with HCL Unica Discover, the following prerequisite tasks must be completed:
  • HCL Unica Discover must be installed and configured.
  • The HCL Discover UI SDK must be downloaded. For more information, see the documentation for HCL Unica Discover.
  • The React Store must be published and running.

Adding the discoverui.js file to your store

To integrate your store with HCL Unica Discover, you must add the discoverui.js file to your store.

Complete the following steps to edit and add the discoverui.js to your React Store. You must complete these steps for each React Store that you want to capture data.

Note: The procedure is also applicable for these following scenarios:
  • If you are upgrading to a newer version of the HCL Discover UI SDK.
  • If you are upgrading from a version prior to 9.1.4.
  1. After you download the HCL Discover UI SDK, extract the discoverui.js file from the SDK.
  2. Edit and update the service endpoints and other configurations in discoverui.js. For more information, see the documentation for HCL Unica Discover.
  3. Add the discoverui.js file to your store. For more information, see the documentation for HCL Unica Discover.
  4. Build and deploy the store.
Note:
  • For the Reference Store applications, the discoverui.js file is located in:
    • The React Store assets, in the /StoreSDK/assets/storeName/public/discover/ directory.
    • The store-web Docker container, in the /SETUP/app/storeName/discover/ directory.

      For example: /SETUP/app/Emerald/discover/

  • If you are upgrading from a version prior to 9.1.4, to integrate a Reference Store application with HCL Unica Discover, you must create the discover directory, and add the discoverui.js file to:
    • The React Store assets, /StoreSDK/assets/storeName/public/discover/discoverui.js.
    • The store-web Docker container, /SETUP/app/storeName/discover/discoverui.js