CanWeChat

Docs

Install

Add the widget with one script tag and lock it to your domains.

Script tag

Paste this before the closing body tag. The script is async and isolates styles with Shadow DOM. It works on any site and with every framework.

<script async src="https://canwechat.dev/api/widget.js" data-site="pk_live_..."></script>

Allowed domains

Lock the public key to hostnames you control. Subdomains must be listed or allowed as children of a listed parent.

Detection

The first successful widget config request marks the site as installed in the dashboard.