Installation
Installing the Knock Knock App widget on your website takes just a few minutes. You copy a small snippet of code from your settings and paste it into your site. Once it is in place, the widget appears automatically for all your visitors.
Getting Your Embed Code
- Go to Settings > Widget > Install
- You will see your unique embed code displayed in a code block
- Click Copy to copy the code to your clipboard
This embed code is unique to your account. It connects the widget on your website to your Knock Knock App dashboard, so all conversations, leads, and settings are linked automatically.
Do not share your embed code publicly or post it in places where unauthorized parties could use it. The code is tied to your account and should only be placed on websites you own or manage.
Platform Guides
Below are step-by-step instructions for the most popular website platforms.
WordPress
- Log in to your WordPress admin panel
- Go to Appearance > Theme Editor, or use a plugin like Insert Headers and Footers
- If using the Theme Editor, open your theme's
footer.phpfile - Paste the embed code just before the closing
</body>tag - Click Save
- Visit your website to confirm the widget appears
Using a header/footer plugin is the easiest approach for WordPress. It keeps your embed code safe even when you update or change your theme.
Shopify
- Log in to your Shopify admin
- Go to Online Store > Themes
- Click Actions > Edit Code on your active theme
- Open the
theme.liquidfile under Layout - Paste the embed code just before the closing
</body>tag - Click Save
- Visit your storefront to confirm the widget appears
WooCommerce
WooCommerce runs on WordPress, so the installation process is the same as the WordPress instructions above. Follow the WordPress steps to add the embed code to your site.
Wix
- Log in to your Wix dashboard
- Go to Settings > Custom Code (under Advanced)
- Click Add Custom Code
- Paste the embed code into the code field
- Set the placement to Body - End
- Choose to apply the code to All pages
- Click Apply
- Visit your website to confirm the widget appears
Squarespace
- Log in to your Squarespace account
- Go to Settings > Advanced > Code Injection
- Paste the embed code into the Footer field
- Click Save
- Visit your website to confirm the widget appears
Custom HTML
If your website is built with plain HTML or a framework not listed above:
- Open your main HTML file (often
index.htmlor your layout template) - Find the closing
</body>tag - Paste the embed code directly before it
- Save the file and deploy your changes
- Visit your website to confirm the widget appears
For single-page applications or JavaScript frameworks, you can also add the embed code to your root HTML template or load it dynamically after the page mounts.
Testing and Verification
After installing the embed code, you should verify that everything is working correctly:
- Open your website in a browser (use an incognito or private window for the cleanest test)
- Look for the widget in the corner of the page — it should match the style you configured in Styles and Appearance
- Click the widget to make sure it opens and displays your channels
- Send a test message through the chat to confirm it appears in your Knock Knock App dashboard
- Check the dashboard — go to your Knock Knock App dashboard and verify the test conversation shows up
If you just installed the code and do not see the widget, try clearing your browser cache or opening the page in a private browsing window. Cached versions of your site may not include the new code yet.
Troubleshooting
The Widget Does Not Appear
Ad blockers — Some browser extensions and ad blockers may prevent the widget from loading. Try disabling your ad blocker temporarily and refreshing the page.
Browser caching — Your browser may be showing a cached version of your page that does not include the embed code. Clear your cache or use a private browsing window.
Script placement — Make sure the embed code is placed just before the closing </body> tag, not inside the <head> section. Incorrect placement can prevent the widget from rendering properly.
Multiple installations — If the embed code appears more than once on your page, it may cause conflicts. Make sure you only have one copy of the code on each page.
The Widget Appears But Does Not Work
Check your channels — Make sure you have at least one channel enabled in Channels. If all channels are disabled, the widget may appear but will not offer any interaction options.
Check your working hours — If you have configured Working Hours, the widget may show an offline state outside those hours. Try testing during your configured working hours.
Browser compatibility — The widget works on all modern browsers. If you are using an outdated browser, try updating it to the latest version.
If you continue to experience issues after trying these steps, reach out to the Knock Knock App support team through your dashboard for personalized help.
Next Steps
Now that your widget is live, set up your Working Hours so the widget knows when your team is available.