0.1.5 • Published 12 months ago

react-gainsight v0.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

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 NameTypeRequiredDescription
gainsightTagKeystringYesYour Gainsight tag key.