Before you start
- Your website widget. Kelu makes one for you when you create a knowledge base. Find it under Integrations → Website widget. You need the widget id and public key from the code on its Install tab.
- Your site’s address on the widget’s Sites it works on list (Install tab).
- Google Tag Manager on every page of your site.
- Publish access to your Tag Manager container.
Add the widget
The widget’s Install tab shows these same steps with your code already filled in.Create a Custom HTML tag
In Tag Manager, open your container. Click Tags, then New. Click Tag Configuration and choose Custom HTML.
Paste the loader into the HTML box
The loader adds the widget’s script tag itself, so the widget id and key always reach the widget:Replace
YOUR_WIDGET_ID and kl_pk_... with the values from your widget’s Install tab.Under the HTML box, tick Support document.write.Fire it on all pages
Click Triggering and choose All Pages. Give the tag a name, such as
Kelu Ask AI, and click Save.