Note: Before you start recording your content, you need to install Hexus.js in your web app.
- Choose installation method
- Install Hexus.js
- Replace placeholders
Step 1: Choose installation method
Hexus.js can be installed in one of 2 ways:- Browser apps using module bundlers (such as Webpack or Rollup)
- Go to Step 2A (npm installation)
- Other browser apps and Google Tag Manager
- Go to Step 2B (HTML snippet installation)
- Google Tag Manager
- Electron apps via hexus-electron
- GoHighLevel
- Self-hosted (WIP)
Step 2A. Private npm packages
The Hexus private npm hosts the following packages.@hexus/hexus-capture@hexus/hexus-search
@hexus/hexus/locale/<locale_code>.
Installing private npm packages
-
Create a new file in your project root folder and name it
.npmrc. -
Copy the contents below to the file:
-
Replace
$HEXUS_NPM_TOKENwith your private HEXUS npm token as shown on the customer portal under your license details.
- Run
npm uninstall @hexus/hexus. - Remove the
node_modulesfolder andpackage-lock.jsonfile. - Reinstall
@hexus/hexus.
Step 2B: HTML snippet installation
Only do this if you did not complete Step 2A. Copy-paste the following snippet into your HTML document before the ending</body> tag:
Integrating Hexus Capture in Your App React Example
Other example projects are available on the private GitHub link included in your license.1. Installation
Ensure that you have installed the@hexus/hexus package.
2. Integrating Hexus into Your Application
Integrate Hexus into your application to utilize its demo creation capabilities.3. Example Usage in Your App
Integrate the demo recording and playback functionality into your application.4. Capturing Click-Throughs
You can also capture click-through events using Hexus by utilizing its built-in methods.@hexus/hexus provides the necessary methods (init, startRecording, stopRecording, playDemo, and captureClick) to handle demo creation and click-through capturing. Adjust the implementation details as necessary based on the specific features and methods provided by the SDK.
Add CMD+K search and navigation in minutes
Improve your self-serve UX by offering keyboard-enabled searching of Hexus content, demos navigation across pages, and shortcuts to powerful actions Other Example projects are available on the private GitHub link included in your license.Integrating Hexus Search in Your App React example
1. Installation
First, ensure that you have installed the@hexus/hexus-search package as described previously.
To display the recorded demos, you need to retrieve the saved data and render it in your application. Here’s an example using React:
2. Example Usage
To use the search functionality and display component in your application, you can integrate it as follows:@hexus/hexus-search package in your application. You can expand on this by adding more features and improving the user interface as needed, adding shortcuts etc.
