# Lili Embedded Onboarding ## Getting Started 1. Call the Lili [Create Application API](/apis/application/other/registeraccount) to get the user token 2. Embed the Lili UI using the following javascript snippet: ``` ``` 1. The following parameters are required: | Parameter Name | Description | | --- | --- | | data-env | Sandbox/Prod - determine which environment to use for the onboarding | | data-external-id | The partner unique ID, as passed in the Create Application API. Optional. | | data-target-div | The DIV in which to present the Lili Create Application UI process | | data-token | The JWT token received from the Create Application API | 1. Please note that the script tag must be located before the closing `` tag in the HTML document ## Sample HTML ```html Lili Embed

Host Lili App Inside Your Page

``` ## GTM Support ### Prerequisites: - The exported JSON file containing the container configuration - Admin access to the destination Google Tag Manager account ### Steps 1. Access Google Tag Manager - Log in to your Google Tag Manager account - Navigate to the container where you want to merge the configuration 2. Import Container - Click on "Admin" in the top navigation - In the Container column, click "Import Container" - Click "Choose container file" and select the provided JSON file - Select "Merge" as the import option (not "Overwrite") - Choose "Existing Workspace" or create a new one - Click "Confirm" to start the import 3. Review Changes - After import, review all imported tags, triggers, and variables - Check for any naming conflicts with existing configuration - Verify that imported triggers are correctly associated with their respective tags - Ensure all variables are properly configured 4. Submit Changes - Once testing is complete and everything works correctly - Add a descriptive name and notes for the version - Click "Submit" to publish the changes - Verify the changes are live in the published version