Skip to main content
The script tag installs window.Festtide. Use it to react to campaigns (for example in your own analytics), to pass consent, or to remove everything from a page.
The script loads asynchronously, so window.Festtide may not exist yet when your own code runs. Check for it first, as in the examples below.

Properties and methods

version

The runtime’s version string. Useful in bug reports.

ready

A promise that resolves once the runtime has decided what to render on this page, or after it gives up at 1.5 seconds. It never rejects, so you can always await it.

on(event, handler)

Calls handler with a detail object every time event happens. Returns a function that removes the handler.
Tells the runtime whether it may count views and clicks. Rendering never needs consent. See Consent.

active()

The ids of the campaigns live on this page right now. Empty when nothing is live, when the page is excluded, or after pause().

pause()

Removes everything the runtime added to the page (banner, effect, theme colours) until the next page load. To stop campaigns on every page for every visitor, use Pause everywhere in the dashboard instead.

Events

Error codes

Every error fails open: the visitor sees your normal page, and the last good timeline is kept for the next page load.