Skip to main content

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:
  1. Go to https://linkrunner.io/dashboard
  2. In the top navigation, click on Settings
  3. In the left sidebar, select Web SDK
  4. 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:
After initialization, you can use the getStoreLink function:

Verification

To verify the SDK is working:
  1. Open your browser’s developer console
  2. Look for “Linkrunner SDK initialized” message
  3. Check that no errors are displayed
Enable debug mode during development to see detailed logs.

Framework Integrations

React

Installation

Basic Setup

Use the getStoreLink 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

Support

If you encounter issues during integration, contact us at support@linkrunner.io.