> For the complete documentation index, see [llms.txt](https://docs.claimr.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.claimr.io/widget.md).

# Widget

The claimr widget lets you add interactive elements like campaigns, polls, and rewards directly to your website. It works like a mini-app embedded on your page, so users can engage with your claimr content without leaving your site. This keeps visitors on your site longer and provides valuable data. The widget works well on all devices, from computers to phones.

The widget is added to your website using a piece of code (called the "embed code"). Just paste this code into your website's HTML. The claimr widget is designed to load quickly, so it won't slow down your site. You can also customize how the widget looks and works.

claimr connects with popular tools like Google Analytics 4 and Hotjar. This lets you track how users interact with your widget and get insights to improve your campaigns.

To learn more, check out our articles.&#x20;

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>Publish campaign</td><td><a href="/files/GIwWcWBaBwg983ioynof">/files/GIwWcWBaBwg983ioynof</a></td><td><a href="/pages/LnlK7TqzDcsm851nLZQv">/pages/LnlK7TqzDcsm851nLZQv</a></td></tr><tr><td>Widget configuration</td><td><a href="/files/mFCwfDZpMaZWcSjm6t1e">/files/mFCwfDZpMaZWcSjm6t1e</a></td><td><a href="/pages/CsCUP8jYCxjfa8271JRx">/pages/CsCUP8jYCxjfa8271JRx</a></td></tr><tr><td>Integrate claimr widget into your website</td><td><a href="/files/8x8Tcwz8zcQqeSJ0TMOV">/files/8x8Tcwz8zcQqeSJ0TMOV</a></td><td><a href="/pages/llT2AuKLMaiGnR7tjLjr">/pages/llT2AuKLMaiGnR7tjLjr</a></td></tr><tr><td>Google Analytics integration</td><td><a href="/files/GIwWcWBaBwg983ioynof">/files/GIwWcWBaBwg983ioynof</a></td><td><a href="/pages/JoRXJl0EqWThb1FDgBOb">/pages/JoRXJl0EqWThb1FDgBOb</a></td></tr><tr><td>Google Tag Manager integration</td><td><a href="/files/GIwWcWBaBwg983ioynof">/files/GIwWcWBaBwg983ioynof</a></td><td><a href="/pages/frOWV2xWLnAVBDo04YcX">/pages/frOWV2xWLnAVBDo04YcX</a></td></tr><tr><td>HotJar integration</td><td><a href="/files/GIwWcWBaBwg983ioynof">/files/GIwWcWBaBwg983ioynof</a></td><td><a href="/pages/DQexz4Zc3FRfVQIBYOG0">/pages/DQexz4Zc3FRfVQIBYOG0</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.claimr.io/widget.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
