Javascript Quickstart

You will learn the following:

  • Open your website in your code editor and find the <head> tag
  • Add the <script> tag to your site
  • Set your Plandalf keys

Installation

Install Plandalf by adding the <script> tag to your site:

index.html
html
<script src="https://js.plandalf.com/v1.js"></script>

Basic Setup

  1. Initialize Plandalf in your application:
src/App.js
javascript
window.plandalf = Plandalf('<JWT_TOKEN>')