Step 1: Install JavaScript Snippet
<head>
section in your index.html file on every page you want to use Userpilot.Your App Token can be found under the environment tab.Step 2: Identify Users
userpilot.identify()
call is used on each page to identify the user and determine if they should see Userpilot content. localStorage.get("token")
is an example method of authentication.Step 3: Reload Userpilot on Page Change
Step 4: Sending Tracked Events
userpilot.track()
call to track actions users take in your application.If you use an analytics tool (e.g. Mixpanel, Amplitude, Hotjar, FullStory, Google Analytics) add theuserpilot.track()
wherever you’re already tracking events. You can also pass extra metadata alongside the event’s name to pass unique information about the event.