Skip to main content
Website Embed

Consent, Analytics & Page Context

Page context, metadata, and privacy guidance for the ept AI website embed — host-controlled config without a built-in CMP.

Consent, Analytics & Page Context

The embed does not ship a cookie consent manager (CMP). Your site remains responsible for consent banners, analytics tags, and what metadata you attach to chat messages. This page covers host-controlled options that affect privacy and page context.

Host-controlled configuration​

Fields on window.eptAIConfig are set by your page code. Treat them as trusted configuration — do not pipe untrusted end-user HTML into them.

Examples of host-controlled fields: botImage, userImage, headerIcon, introText, disclaimerText, advancedWelcomeText, eptMetaData.

Details: Config value trust model.

Page context with each message​

Manual metadata​

window.eptAIConfig = {
accessToken: 'your-token',
eptMetaData: {
page: location.pathname,
url: location.href,
locale: document.documentElement.lang || 'en',
section: 'documentation',
},
};

Keep context useful but privacy-safe. Prefer paths and product IDs over emails, names, or secrets unless the user has consented and your policy allows it.

Full patterns (SPA prompts, dynamic questions): Context-Aware Chat.

Opt-in current page URL​

When includeCurrentPageUrl is true, each message includes eptMetaData.current_page_url as the full page URL (query string included). A host-set current_page_url is kept.

window.eptAIConfig = {
accessToken: 'your-token',
includeCurrentPageUrl: true,
};

Default is false. Enable only if page URLs (including query params) are acceptable under your privacy policy — query strings often contain campaign IDs or other identifiers.

Chat persistence (browser storage)​

By default (enableChatPersistence: true), conversation history is saved in the browser for 24 hours and restored when the user returns. Set enableChatPersistence: false to start a new chat on each page load.

If your consent banner gates non-essential storage, align this flag with that choice before enabling persistence.

Analytics​

  • ept AI product analytics for answers and feedback live in the ept app (Responses, Conversations).
  • Your site analytics (GTM, Segment, etc.) are independent. Do not assume the widget fires your marketing pixels; instrument your own launchers and events if needed (for example after show()).

Disclaimer and trust copy​

Use disclaimerText for in-widget accuracy or data-use notices:

window.eptAIConfig = {
accessToken: 'your-token',
disclaimerText: 'AI can make mistakes. Do not share confidential credentials.',
};

Checklist​

  • Consent / CMP owned by the host site
  • eptMetaData reviewed for PII
  • includeCurrentPageUrl justified if enabled
  • Persistence aligned with storage consent
  • Disclaimer copy set if required by your legal team