head entry in its site config to every page. You add the widget there.
Before you start
- A website widget with your site on its Allowed origins list. You need the widget id and public key from its snippet.
Add the widget
Add a script entry to head
Add this inside Replace
defineConfig({ ... }). If head already exists, add the entry to it..vitepress/config.ts
YOUR_WIDGET_ID and kl_pk_... with the values from your widget’s snippet. async: "" writes the async attribute with no value.