SDK
JavaScript
Get Started

Installation

NPM

Install adcio.js with your package manager.

adcio.js

yarn
yarn add adcio.js
npm
npm install adcio.js

CDN

You can also use adcio.js with the pre-built production ready script.

<script src="https://cdn.adcio.ai/sdk/v1/adcio.js"></script>

Usage

Initialize Adcio

Initialize the class Adcio with your clientId and customerId. You can find clientId in the account management page (opens in a new tab). customerId refers to the unique ID of the customer of your store. It is optional, but it is recommended to use it for more accurate suggestions.

import { Adcio } from "adcio.js";
 
const adcio = new Adcio({ clientId: "...", customerId: "..." });