Installation

Import and set the API key

Include djaty-javascript.js first in the page <head> tag to early detect any error. Don’t worry it’s optimized for minimal overhead

CDN

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>My Website</title>
    <script src="https://cdn.djaty.com/js-sdk/djaty-javascript.js"
            djaty-api-key="YOUR_PROJECT_API_KEY_HERE">
    </script>
  </head>
  <body>
    <h1>Hello World!</h1>
  </body>
</html>

Using package manager

Pre-built distributions of Djaty plugin are available via npm.

NPM

npm install @djaty/djaty-javascript

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>My Website</title>
    <script src="/node_modules/@djaty/djaty-javascript/dist/djaty-javascript.js"
            djaty-api-key="YOUR_PROJECT_API_KEY_HERE">
    </script>
  </head>
  <body>
    <h1>Hello World!</h1>
  </body>
</html>

Just configure the djaty-api-key and Djaty will be ready!