DrTalks.ai Documentation
Everything you need to get your DrTalks chat widget up and running on your website.
Copy your actual embed script from the API Keys page in your DrTalks dashboard. The snippet below shows the structure for reference only.
Google Tag Manager
Deliver the widget through a Custom HTML tag. GTM injects the script on matching pages, so you never have to touch your site's code.
- In your GTM container, go to Tags → New and choose Custom HTML as the tag type.
- Paste your DrTalks embed script into the HTML field.
- Set the trigger to All Pages (or a subset of pages where the widget should appear).
- Save the tag, then Submit and Publish your container.
Your embed script:
<!-- DrTalks Chat Widget -->
<script src="[copied from your dashboard]"
defer
data-widget-id="YOUR_WIDGET_ID"
data-site-domain="YOUR_DOMAIN">
</script>
<!-- End DrTalks Chat Widget -->Leave the tag's firing options at Once per page so the widget script loads a single time per page view.