Requirements
- Modern browser (Chrome 60+, Firefox 55+, Safari 12+, Edge 79+)
- JavaScript ES6+ support
- HTTPS enabled (recommended for production)
Getting Your Web SDK Token
Before installing the SDK, you’ll need to obtain your Web SDK token:- Go to https://linkrunner.io/dashboard
- In the top navigation, click on Settings
- In the left sidebar, select Web SDK
- Copy your Web SDK Token from this page
Installation
CDN
Add the Linkrunner SDK to your HTML:NPM Package
Module Import
After installing via NPM, import the SDK:Configuration
Script Attributes (CDN)
When using the CDN version, configure via script attributes:Manual Initialization
For manual initialization or when using NPM:Getting Store Links (CDN)
After initialization, you can use thegetStoreLink function:
Verification
To verify the SDK is working:- Open your browser’s developer console
- Look for “Linkrunner SDK initialized” message
- Check that no errors are displayed
Enable debug mode during development to see detailed logs.
Framework Integrations
React
Installation
Basic Setup
Getting Store Links
Use thegetStoreLink function to retrieve store links for your products:
With React Router
Next.js
Installation
Pages Router
App Router
Next Steps
Test Your Integration
Validate your setup end-to-end
Track Custom Events
Learn about event tracking