Quickstart
Get AskThis live on any site in under five minutes. This guide covers the universal embed; for WordPress or Shopify, use the plugin instead.
Install the widget
Paste this snippet just before the closing </body> tag. Replace the site ID with your own from the dashboard.
<script async
src="https://cdn.askthis.io/widget.js"
data-site-id="cq_8f2a">
</script>
Configure attributes
Control layout and theme with data attributes. All are optional — sensible defaults apply.
| Attribute | Values |
|---|---|
data-site-id |
Your site key (required) |
data-layout |
inline · sticky · floating |
data-theme |
auto · light · dark |
data-labels |
true · false |
Verify it’s firing
Open your dashboard and click Verify installation. AskThis checks for the widget’s first event. If it fails silently, the widget is designed never to break your page — so check the browser console for a one-line notice.
That’s it — social and AI buttons are live, and events flow to your analytics.