VisitorsOptions
Options for createVisitors.
Properties
Section titled “Properties”consent?
Section titled “consent?”
optionalconsent?:ConsentOptions
What you know about the visitor’s consent. Change it later with Visitors.setConsent.
endpoint?
Section titled “endpoint?”
optionalendpoint?:string
Where the ebitex API is. Defaults to https://api.ebitex.io.
fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
The fetch to use. Defaults to the global one.
Parameters
Section titled “Parameters”RequestInfo | URL
RequestInit
Returns
Section titled “Returns”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.
storage?
Section titled “storage?”
optionalstorage?: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.