βGetting started with Fuul Web SDK
This guide will help you get started with the Fuul Web SDK
Setting up the Fuul SDK
By integrating the Fuul SDK, you will have access to all the functions needed to implement Fuul on your website.
1. Installation
Run one of the following commands to add Fuul SDK to your project:
npm install @fuul/sdk
yarn add @fuul/sdk
2. Set up the Fuul SDK
Before using the SDK you must initialize it by supplying your Fuul-issued API key.
import { Fuul } from ('@fuul/sdk');
Fuul.init({ apiKey: "your-fuul-tracking-or-read-only-api-key-depending-on-the-case" });
When using Next js v13 AppRouter, ensure to initialize Fuul SDK in a component rendered in the client
Last updated