A component to initialize Fullstory in your application
npm install react-fullstory-updatedbash
npm i react-fullstory-updated --save
`Usage
Include the component somewhere in your application - probably in the top-most component.`js
import { Component } from 'react';
import FullStory from 'react-fullstory-updated';export class App extends Component {
render () {
return (
);
}
}
`This loads FullStory at the creation of the component and places the script appropriately in the page. This library allows for the calling of any function FullStory currently has, or will ever have, in their library.
`js
import { FullStoryAPI } from 'react-fullstory-updated';// Identify method
FullStoryAPI('identify', userId, {
custom_var_1: 'Hello',
custom_var_2: 'World'
});
// SetUserVars method
FullStoryAPI('setUserVars', {
custom_var_3: 'Hello',
custom_var_4: 'World'
});
``