Installing HelperHat on your website is quick and easy. Follow the steps below to start
providing simplified customer support with HelperHat.
Copy the HelperHat Installation Code
To begin you'll need your unique HelperHat installation code which is provided during
the HelperHat onboarding steps. It should look something like this:
If you've already signed up successfully, then follow these instructions to get your
installation code:
- Log in to your HelperHat account.
-
Go to the Settings page on HelperHat.
- Copy the installation code provided. It should look something like this:
Install HelperHat to Your Website
Once you have the code, add it to your website's HTML. Here's how:
- Access your website's HTML files. Depending on how your site is built, you might need to
log into your content management system (CMS) or use an FTP client to access your files
directly.
- Locate the closing
</body>
tag in the HTML of
each page where you
want to enable HelperHat. This is usually found near the bottom of your HTML files.
- Paste the HelperHat installation code directly before the closing
</body>
tag.
- Save and upload your changes. If you're using a CMS, simply save your updates. If you're
editing files directly, be sure to upload the modified files back to your server.
Install HelperHat on a WordPress Website
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Log in to your WordPress account.
- Go to Appearance > Theme Editor and add the installation code just
before the closing
</body>
tag of the footer.php
file.
- Paste in the installation code and select Update File.
Note: If your website is hosted on WordPress.com, you cannot add the
HelperHat installation code to your website unless you are on their Business plan. The other
plans (e.g. Premium, Personal) do not allow users to add JavaScript code.
Install HelperHat on a Shopify Page
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Log in to your Shopify admin dashboard.
- In the left sidebar menu, navigate to Online Store > Themes.
- Click the Actions dropdown menu and select Edit code.
- Select the theme.liquid file for your theme.
- Paste your HelperHat installation code just before the
</body>
tag in
this file.
- In the upper right, click Save.
Install HelperHat on a WooCommerce Website
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Log in to your WordPress dashboard and navigate to Appearance > Theme
Editor.
- Open the
footer.php
file of your theme and paste the code just before the
closing </body>
tag.
- Click Update File to save your changes.
Note: Ensure you test the installation on your WooCommerce checkout and
product pages to confirm it doesn't interfere with the user experience.
Install HelperHat on a Wix Website
Use the App Market in Wix to add an HTML widget to your page:
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Go to Settings in your site's dashboard.
- Click the Custom Code tab in the Advanced section.
- Click + Add Custom Code at the top right.
- Paste the installation code in the text box.
- Set the Name of the new tool to HelperHat Installation Code.
- Under Add Code to Pages, click the radio button for All
pages and use the dropdown menu to select Load code on each new
page.
- Under Place Code in the section, click the radio button for
Body - end option.
- Click Apply to save your changes.
Install HelperHat on a Squarespace Website
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Log in to your Squarespace account.
- In the left sidebar menu, navigate to Settings.
- In the Website section of the menu, navigate to
Advanced, then select Code Injection.
- Paste the installation code into the Header field.
- In the upper left, click Save.
Install HelperHat on a Drupal Website
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Log in to your Drupal admin dashboard.
- In the main navigation menu, navigate to Structure.
- Click Blocks.
- Click + Add Block.
- Enter the fields for your new block. Paste the installation code in the Block body field
and then click Save block.
Install HelperHat on a Joomla Website
There are two ways to add your HelperHat tracking code to your Joomla site. With either
method, follow the steps above to copy the HelperHat installation code from your HelperHat
account settings first.
- You can select an extension from the Joomla Extension Directory where you can paste in
the HelperHat installation code. Alternatively, you can follow the steps below to
install the installation code:
- Log in to your Joomla account as an administrator.
- In the main navigation menu, navigate to Extensions > Templates >
Templates.
- Click the name of your template and select index.php in the left sidebar menu.
- Paste the HelperHat installation code directly above the
</body>
tag.
- Click Save.
Install HelperHat on a BigCommerce Website
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Log in to your BigCommerce admin dashboard.
- Navigate to Storefront > Script Manager.
- Click Create a Script and select the following options:
- Location on page: Footer
- Pages where script will be added: All pages
- Paste the HelperHat installation code into the script content box.
- Click Save to add the code to your BigCommerce store.
Install HelperHat on a Magento Website
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Log in to your Magento admin dashboard.
- Navigate to Content > Design > Configuration.
- In the list of available themes, click Edit on the theme you are
currently using.
- Scroll down to the Other Settings section and click on HTML
Head.
- Locate the Scripts and Style Sheets field.
- Paste your HelperHat installation code into this field.
- Scroll to the top of the page and click Save Configuration.
- Clear the cache by navigating to System > Cache Management and
clicking Flush Cache Storage.
Note: It is important to clear your Magento cache after making these changes
to ensure the HelperHat code is correctly loaded on your site.
Install HelperHat on a Next.js App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your Next.js project and navigate to the
_app.js
or
_document.js
file.
- Import
useEffect
from React (if using _app.js
).
- Use the following code in the
_app.js
file:
import { useEffect } from 'react';
function MyApp({ Component, pageProps }) {
useEffect(() => {
document.body.insertAdjacentHTML('beforeend', `HELPERHAT_INSTALLATION_CODE`);
}, []);
return <Component {...pageProps} />;
}
export default MyApp;
- Replace
HELPERHAT_INSTALLATION_CODE
with the code you copied.
Install HelperHat on a GatsbyJS App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your Gatsby project and navigate to the
gatsby-browser.js
file.
- Add the following code using React's
useEffect
:
import { useEffect } from 'react';
export const onClientEntry = () => {
useEffect(() => {
document.body.insertAdjacentHTML('beforeend', `HELPERHAT_INSTALLATION_CODE`);
}, []);
};
- Replace
HELPERHAT_INSTALLATION_CODE
with the code you copied.
Install HelperHat on a React App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your React project and navigate to the main component (e.g.,
App.js
).
- Import
useEffect
from React.
- Add the following code inside your component:
useEffect(() => {
document.body.insertAdjacentHTML(
'beforeend',
`HELPERHAT_INSTALLATION_CODE`
);
}, []);
- Replace
HELPERHAT_INSTALLATION_CODE
with the code you copied.
Install HelperHat on an Angular App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your Angular project and navigate to your main component (e.g.,
app.component.ts
).
- In the
ngOnInit
method, add the following code:
ngOnInit() {
document.body.insertAdjacentHTML('beforeend', `HELPERHAT_INSTALLATION_CODE`);
}
- Replace
HELPERHAT_INSTALLATION_CODE
with the code you copied.
Install HelperHat on a Vue.js App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your Vue.js project and navigate to your main component (e.g.,
App.vue
).
- In the
mounted
lifecycle hook, add the following code:
mounted() {
document.body.insertAdjacentHTML('beforeend', `HELPERHAT_INSTALLATION_CODE`);
}
- Replace
HELPERHAT_INSTALLATION_CODE
with the code you copied.
Install HelperHat on a Svelte or Sapper App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your Svelte project and navigate to your main component file (e.g.,
App.svelte
).
- Use the
onMount
lifecycle function to add the code:
import { onMount } from 'svelte';
onMount(() => {
document.body.insertAdjacentHTML('beforeend', `HELPERHAT_INSTALLATION_CODE`);
});
- Replace
HELPERHAT_INSTALLATION_CODE
with the code you copied.
Install HelperHat on a Flutter Web App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your Flutter Web project and navigate to the
web/index.html
file.
- Paste the HelperHat installation code before the closing
</body>
tag.
Install HelperHat on a Django App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your Django project and navigate to your base HTML template (e.g.,
base.html
).
- Paste the HelperHat installation code before the closing
</body>
tag.
Install HelperHat on a Flask App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your Flask project and navigate to your base HTML template (e.g.,
base.html
).
- Paste the HelperHat installation code before the closing
</body>
tag.
Install HelperHat on a Laravel App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your Laravel project and navigate to your main Blade template (e.g.,
layouts/app.blade.php
).
- Paste the HelperHat installation code before the closing
</body>
tag:
{!! HELPERHAT_INSTALLATION_CODE !!}
- Replace
HELPERHAT_INSTALLATION_CODE
with the code you copied.
Install HelperHat on a Ruby on Rails App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your Rails project and navigate to your main layout file (e.g.,
application.html.erb
).
- Paste the HelperHat installation code before the closing
</body>
tag:
<%= raw HELPERHAT_INSTALLATION_CODE %>
- Replace
HELPERHAT_INSTALLATION_CODE
with the code you copied.
Install HelperHat on an ASP.NET Core App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your ASP.NET Core project and navigate to your main layout file (e.g.,
_Layout.cshtml
).
- Paste the HelperHat installation code before the closing
</body>
tag:
@Html.Raw("HELPERHAT_INSTALLATION_CODE")
- Replace
HELPERHAT_INSTALLATION_CODE
with the code you copied.
Install HelperHat on an Express.js App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your Express.js project and navigate to your static HTML file (e.g.,
index.html
).
- Paste the HelperHat installation code before the closing
</body>
tag.
Install HelperHat on a Spring Boot App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your Spring Boot project and navigate to your main HTML template (e.g.,
index.html
).
- Paste the HelperHat installation code before the closing
</body>
tag.
Install HelperHat on an Electron App
- Follow the steps above to copy the HelperHat installation code from your HelperHat
account settings.
- Open your Electron project and navigate to your main process file (e.g.,
main.js
).
- Use the following code to add the installation code in the renderer process:
const { BrowserWindow } = require('electron');
// Create a new BrowserWindow and load your HTML
let mainWindow = new BrowserWindow({ ...options });
mainWindow.webContents.on('did-finish-load', () => {
mainWindow.webContents.executeJavaScript(
`document.body.insertAdjacentHTML('beforeend', \`HELPERHAT_INSTALLATION_CODE\`);`
);
});
- Replace
HELPERHAT_INSTALLATION_CODE
with the code you copied.
Verify Installation
To make sure HelperHat is correctly installed, follow these steps:
- Clear your browser cache to ensure you see the most up-to-date version of your website.
- Visit your website and navigate to a page where you added the HelperHat code.
- Look for the HelperHat widget to appear, usually at the bottom corner of your webpage.
If you see the HelperHat widget, congratulations! You've successfully installed HelperHat.
Troubleshooting
If the HelperHat widget does not appear:
- Double-check the code: Make sure you copied the entire HelperHat installation code
without any changes.
- Verify the placement: Ensure the code is placed directly before the
</body>
tag.
- Check your browser's console for errors: Sometimes JavaScript errors can prevent the
widget from loading.
If you continue to experience issues, please contact us at
[email protected] for assistance.
Need Help?
If you're not familiar with editing HTML or don't have access to your website's code, you can
send the installation instructions to your webmaster. Click the “Email Instructions to
Webmaster” button from your onboarding page to email your webmaster.