🛠️Integration with Web Renderer (Javascript Package)

Integration Steps:

Please follow the below steps to integrate the Avataar Renderer Javascript Package on your website:

  1. Create an html element with a specific id attribute.

Example :

<div id="alhena-exp"></div>
  1. Once the element is created, add the following script to your webpage to import the javascript package provided by Avataar.

<script src="https://web2.avataar.me/alhena-js/alhena-0.1.131.js"></script>
  1. Post importing the package, add the following code snippet to your script tag providing the details (config URL and auth token)of any particular SKU which you want to render. Your CSM will share the process to get the config URL.

elementId: <HTML-ELEMENT-ID>,
token: <TOKEN>,

*References :

HTML-ELEMENT-ID -> Where do you want to render the experience CONFIG-URL -> your experience config URL

TOKEN -> your token

Sample :

Use the config URL and token from the below example for testing:

<!DOCTYPE html>
<html lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1.0,       user-scalable=no">
      #alhena-exp {
        width: 100vw;
        height: 100vh;
    <div id="alhena-exp"></div>
    <script src="https://web2.avataar.me/alhena-js/alhena-0.1.131.js"></script>
        elementId: "alhena-exp",
        configLink: "<CONFIG_URL>",
        token: "<TOKEN>",

Last updated