Install the widget in 5 minutes
Add AskThis to any website with a single script tag, then verify it's live from your dashboard.
AskThis adds social and “Ask AI” share buttons to your pages. The fastest way to go live on any site is the universal embed — one script tag. If you run WordPress or Shopify, use the plugin instead (see Related below); everything else uses the embed.
1. Copy your embed snippet
Paste this just before the closing </body> tag on every page where you want the widget,
and replace the site ID with your own from the dashboard (Sites → Install).
<script async
src="https://cdn.askthis.io/widget.js"
data-site-id="cq_8f2a">
</script>
The script is async and self-contained — it never blocks your page, and if anything
goes wrong it fails silently rather than breaking your layout.
2. Tune it with data attributes (optional)
Everything below is optional — sensible defaults apply.
| Attribute | Values | Default |
|---|---|---|
data-site-id |
Your site key (required) | — |
data-layout |
inline · sticky · floating |
inline |
data-theme |
auto · light · dark |
auto |
data-labels |
true · false |
true |
AI buttons
The “Ask AI” buttons route visitors into ChatGPT, Claude, Gemini, Perplexity and more with a pre-built, source-citing prompt for the page. You choose which engines appear in Configure — see Configure buttons & engines.
3. Verify it’s live
Open your dashboard and click Verify installation. AskThis watches for the widget’s first event and confirms the install. If it doesn’t fire, check the browser console for a one-line notice — the widget logs why without throwing.
That’s it. Social and AI buttons are live and events flow to your analytics.
Next steps
- Configure buttons & engines — pick platforms, layout, and theme.
- Understand what you’re seeing: the full analytics reference on the developer docs.
- Prefer a plugin? Install on WordPress · Install on Shopify.
Deeper reference
This is the quick path. The complete install guide — every attribute, npm packages, and framework wrappers — lives in the developer docs.