Docs
Browse docs

Embed Script

The VOTLI embed script lets you inject your compliance page content (privacy policy, terms, etc.) into any external website - your own landing page, marketing site, or documentation - without duplicating content.

The embedded content is unstyled HTML, so it inherits your host website's styles automatically.

Plan requirement: The embed integration requires a paid plan.

How it works

  1. Add the VOTLI embed script to your page's <head>
  2. Add a placeholder element where you want the content to appear
  3. VOTLI fetches and injects the content automatically

Setup

1. Add the script tag

<script
  src="https://votli.app/embed.js"
  data-app="YOUR_APP_UUID"
  defer
></script>

Replace YOUR_APP_UUID with your app's UUID (found on the Integration page in the dashboard).

2. Add a content placeholder

<div
  data-type="privacy"
  data-target="#privacy-content"
></div>

<div id="privacy-content"></div>

The data-type attribute specifies which page to embed. Available values:

Value Page
privacy Privacy Policy
terms Terms of Service
eula EULA
cookies Cookie Policy
refund Refund Policy

Integration page

The Integration section in your app's dashboard acts as documentation and a live snippet generator. It shows only your published pages that have content, and generates ready-to-copy code snippets for each.

Caching

Embedded content is cached for 1 hour via HTTP cache headers. Changes you publish in VOTLI will appear on your site within an hour.