Published on 8/1/2024
How To Add HadjGPT To Your Shopify Store
HadjGPT is an AI-powered chatbot that enhances user interaction on your website by providing instant assistance and engaging conversations. Integrating HadjGPT into your Shopify store can improve user experience and boost engagement. In this guide, we'll walk you through the process of adding HadjGPT to your Shopify store. The steps are clear and straightforward, allowing you to embed the chatbot with ease.
Step 1: Access Your HadjGPT Dashboard
- Log in to Your HadjGPT Account
- Go to the "Chatbots" Section
- Access the "Embed Widget" Section
- Copy the Embed Script
Start by logging into your HadjGPT account and navigating to your dashboard. This is where you'll manage all aspects of your HadjGPT integration.
In the dashboard menu, locate and click on the "Chatbots" tab. This section is where you'll find the necessary information for embedding your chatbot.
Within the "Chatbots" section, navigate to the "Embed Widget" area. Here, you'll find the embed script that you'll need to add to your Shopify store.
Look for the embed script provided in this section. Copy this script as you'll need to paste it into your Shopify theme in the next steps.
Step 2: Access Your Shopify Theme Code
- Log in to Your Shopify Admin Panel
- Navigate to "Online Store" > "Themes"
- Find Your Current Theme and Click "Actions" > "Edit code"
Access your Shopify admin area. This is where you manage your store's settings and content.
In the left-hand menu of your Shopify admin panel, go to "Online Store" and then click on "Themes".
Locate your current active theme and click on the "Actions" dropdown menu. Select "Edit code" from the options.
Step 3: Add the HadjGPT Script to Your Theme
- Locate the theme.liquid File
- Open theme.liquid
- Find the </head> Tag
- Paste the HadjGPT Embed Script
- Save Your Changes
In the theme code editor, look for the theme.liquid
file. This file contains the main structure of your Shopify theme.
Click on the theme.liquid
file to open it in the editor.
Scroll through the theme.liquid
file until you find the closing </head>
tag.
Just before the closing </head>
tag, paste the HadjGPT embed script you copied earlier from your HadjGPT dashboard.
After pasting the script, click the "Save" button to apply your changes to the theme.
Step 4: Test Your Chatbot
- Visit Your Shopify Store's Frontend
- Look for the HadjGPT Chat Widget
- Interact with Your New AI Assistant
Open your Shopify store in a new browser tab to view it as a customer would.
The HadjGPT chat widget should now appear on your store, typically in the bottom right corner of the page.
Try interacting with the chatbot to ensure it's working correctly and providing the expected responses.
Troubleshooting Common Issues
Even with careful setup, you might encounter a few issues. Here's how to troubleshoot:
Issue 1: Chatbot Not Displaying
- Double-check that you've pasted the correct embed script in the
theme.liquid
file. - Verify that you've saved the changes to your theme after adding the script.
- Clear your browser cache and reload your Shopify store to see if the widget appears.
Issue 2: Script Errors
- Check for any JavaScript errors in your browser's developer console (usually accessible by pressing F12).
- Ensure there are no conflicts with other scripts or apps installed on your Shopify store.
- If you're using a custom theme, make sure it's compatible with external scripts.
Conclusion
Congratulations! You've successfully added HadjGPT to your Shopify store. This AI-powered chatbot will enhance your customer service capabilities and improve user engagement. Remember, if you need any assistance or have questions about your HadjGPT integration, our support team is always here to help. Enjoy the benefits of your new AI assistant and watch as it transforms your customer interactions!
Bilal Mansouri
Indie Maker and Founder of HadjGPT