react-gainsight
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

react-gainsight

A simple React component for injecting the Gainsight script.

This library provides a convenient way to integrate Gainsight analytics into your React applications. By using this component, you can ensure that the Gainsight script is loaded correctly and only once.

Installation

npm install react-gainsight

Usage

import GainsightScript from "react-gainsight";

function App() {
  const gainsightTagKey = "YOUR_GAINSIGHT_TAG_KEY";

  return (
    <div>
      <GainsightScript gainsightTagKey={gainsightTagKey} />
      {/* Your app content */}
    </div>
  );
}

Props

Prop Name Type Required Description
gainsightTagKey string Yes Your Gainsight tag key.

Package Sidebar

Install

npm i react-gainsight

Weekly Downloads

0

Version

0.1.5

License

ISC

Unpacked Size

5.81 kB

Total Files

8

Last publish

Collaborators

  • snivio