Quick Start
Install and configure the Grovs Web SDK in your project
Installation
Bash
npm install grovs --saveSetup
Import and initialize the SDK:
import Grovs from 'grovs';
const grovs = new Grovs('your-api-key', (data) => {
// Called when a matching link is detected
console.log('Link data:', data);
});
// Start the SDK
grovs.start();User identity
Set user information for attribution and analytics:
grovs.setUserIdentifier('user-123');
grovs.setUserAttributes({
name: 'Jane Doe',
email: '[email protected]',
plan: 'premium',
});Retrieve current values:
const userId = grovs.userIdentifier();
const attrs = grovs.userAttributes();Next steps
See also
- How to Integrate an NPM Package — step-by-step guide to installing the Grovs package with npm
- Registering Domains for SDK Integration — register every domain where the SDK runs so callbacks and redirects work
- SDK configuration issues — resolve common setup and initialization problems
- Frequently asked questions — quick answers to common Grovs questions
Edit this page on GitHubLast updated 2026-07-29