Step 1: Install the Analytics Library

Yext Analytics is available via npm or yarn. To install,

npm i @yext/analytics
yarn add @yext/analytics

Local Install

If you require additional customization or need to fork the library, you can download the source code and reference it in your file structure.

Code Sandbox Vanilla JS Example

To play around with the library and its types, we’ll walk through an example with Code Sandbox.

  1. Create a new Code Sandbox using the “Vanilla Typescript” Template .
  2. Under the “Dependencies” section on the left, search for @yext/analytics and install it.
Feedback