Skip to content

Snivio/react-gainsight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published