---
title: Collect conversion reasons where users hesitate | MorePaying
canonical: /widget
---

> HTML version: /widget

# Widget SDK

One script tag. Conversion moment, plan, usage, paying amount, URL, viewport, console errors, optional pin, and a truncated DOM snapshot of the pinned element.

```html
<script src="/widget.js"></script>
<script>
  MorePaying.init({
    projectKey: "mp_proj_YOUR_KEY",
    tabText: "Why no convert?",
    brandColors: { primary: "#10b981", hover: "#059669", active: "#047857", onPrimary: "#ffffff" }
  })
</script>
```

```js
MorePaying.ask({ moment: "pricing_exit", plan: "free", usage: "12 / 50", payingAmountCents: 0 })
```

For signed-in users, mint a short-lived token on your server. Never put a signing secret in the browser.
