HTML / Static Sites

Install tokwork in plain HTML websites.

Install tokwork in HTML / Static Sites

For plain HTML websites, static sites, or any site where you have access to the HTML code.

Installation

Add the tokwork script before the closing </body> tag:

<!DOCTYPE html>
<html>
<head>
  <title>Your Website</title>
</head>
<body>
  
  <!-- Your website content -->
  <h1>Welcome to my website</h1>
  
  <!-- tokwork Widget - Add before closing body tag -->
  <script async src="https://js.tokwork.com/loader.js" 
    data-website-id="YOUR_WEBSITE_ID" 
    data-website-domain="yourdomain.com">
  </script>
</body>
</html>
Best Practice: Place the script at the end of the <body> tag to ensure your page content loads first.

Verify Installation

  1. Open your website in a browser
  2. Open Developer Tools (F12)
  3. Check the Console tab for:
    ✅ tokwork Widget loaded successfully
    
  4. Look for the widget in the bottom-right corner

Common Issues

Next Steps