Skip to content

VisitorsOptions

Options for createVisitors.

optional consent?: ConsentOptions

What you know about the visitor’s consent. Change it later with Visitors.setConsent.


optional endpoint?: string

Where the ebitex API is. Defaults to https://api.ebitex.io.


optional fetch?: (input, init?) => Promise<Response>

The fetch to use. Defaults to the global one.

MDN Reference

RequestInfo | URL

RequestInit

Promise<Response>


key: string

An Audience delivery key, restricted to the origins of your site. The key is visible to anyone who views your page, which is safe only because it can be used from those origins alone. Never put an unrestricted key in a page.


optional storage?: false | VisitorStorage

Where to keep the token between visits. By default a first-party cookie called ebitex_visitor (see cookieStorage). Pass false to keep it in memory only, so every page load is a new visitor.