Getting started with the 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.

This guide assumes you have already created a Fuul account and created the SEND: TRACKING_EVENT API key.

1. Installation

Run one of the following commands to add Fuul SDK to your project:

Using npm
npm install @fuul/sdk
Using yarn
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.

Be sure to do this at the root of your app so you have the SDK ready for use just by importing it at the usage point

import { Fuul } from ('@fuul/sdk');

Fuul.init({ apiKey: "your-fuul-tracking-api-key" });

When using Next js v13 AppRouter, ensure to initialize Fuul SDK in a component rendered in the client. For more information, please check this article

Last updated