React
Install & Provider Setup
Get Swishjam setup in your react app
Install Swishjam
Provider Setup
in your _app.js or top level layout import and setup Swishjam with your API key
_app.js
Update API key
Replace swishjam-XXXXXXXX
with your API Key located in your Swishjam settings.
Swishjam supports multiple API keys:
- Segment & combine data easier
- Pre-built dashboards
Full Provider Options
Component Props
API Key from your Swishjam settings
URL for the data capture endpoint. Defaults to Swishjam’s cloud solution
Determines how many user events we hold in memory before sending them to the data capture endpoint. We also try to dump the data on page leave
Frequency we attempt to report data to the capture endpoint
Disabled sending of events to the capture endpoint for testing and various non-production environments
You can specify a list of URLs that we will ignore data from. Defaults to localhost