How to Install Chatim Live Chat Widget on WordPress
You can use our official WordPress plugin or follow one of the manual methods below.
Step 1: Generate and Copy the Widget Code
- Log in to your .Chatim dashboard.
- Select your project and click Install in the navigation menu.
- Click Copy Code to copy the snippet to your clipboard.
The code looks like this:
<script>
window.chatim = window.chatim || {};
window.chatim.cmd = window.chatim.cmd || [];
window.chatim.settings = { projectId: "YOUR_PROJECT_ID" };
</script>
<script src="https://widget.chatim.app/widget.js" async></script>
Step 2: Install the Widget on WordPress
Option 1: Using a Plugin (Recommended)
- Log into your WordPress dashboard and navigate to Plugins > Add New.
- Search for a plugin like "Insert Headers and Footers" or any similar plugin that allows you to add custom scripts.
- Install and activate the plugin.
- Go to Settings > Insert Headers and Footers.
- Paste the Chatim widget code in the "Scripts in Footer" section.
- Click "Save" to apply the changes.
- Clear cache if needed.
Option 2: Using functions.php
Add the following code to your theme's functions.php file:
function add_chatim_widget() {
?>
<script>
window.chatim = window.chatim || {};
window.chatim.cmd = window.chatim.cmd || [];
window.chatim.settings = { projectId: "YOUR_PROJECT_ID" };
</script>
<script src="https://widget.chatim.app/widget.js" async></script>
<?php
}
add_action('wp_footer', 'add_chatim_widget');
Option 3: Theme Editor
- Go to your WordPress dashboard and navigate to Appearance > Theme Editor.
- Open the
footer.php file under the theme files section. - Paste the Chatim widget code just before the closing
</body> tag. - Click "Update File" to save the changes.
- Clear cache if needed.
Step 3: Test the Widget
- Visit your WordPress site and refresh the page to see the Chatim widget in action.
- Test the live chat and chatbot functionalities to ensure they are working correctly.
Step 4: Adjust Settings and Monitor Performance
Return to your Chatim dashboard to monitor customer interactions, view analytics, and make any necessary adjustments to the widget's behavior, appearance, or responses based on user feedback and engagement.
Need Help?
If you encounter any issues during the installation process, contact us.