WHMCS Analytics and Live Chat

Screenshot of WHMCS homepage

Want to add real-time web analytics and live chat to your WHMCS website? You've come to the right place – this guide will show you how to get set up with GoSquared Analytics and Live Chat for your WHMCS website.

Install the GoSquared module for WHMCS

Michael Kinder of Trutone Hosting kindly made a module for WHMCS that enables you to easily add GoSquared to your site. Details can be found in the WHMCS marketplace.

Requirements

Install GoSquared Analytics and Live Chat

Screenshot of GoSquared Analytics Now dashboard
  • Download the module contents from the WHMCS Marketplace.
  • Extract the contents of the Zip file and add the folder into the root directory of your WHMCS installation.
  • In WHMCS, go to Setup > Addon Modules.
  • Find GoSquared WHMCS Module in the list and click the Activate button.
  • Once activated, go back to the module on that screen and click the Configure button.
  • Copy and paste your GoSquared JavaScript Snippet into the box labeled GoSquared Code Snippet.
  • Hit the Save Changes button.

Add user-level analytics

To optionally enable user-level tracking and send data to the GoSquared Customer Data Hub:

Find the header.tpl file in WHMCS and open it. (The header.tpl will be located at path/to/whmcs/templates/yourtemplate/header.tpl)

Add the following code below the "/head>" tag.

{literal}
<script>
_gs('identify', {
  name: '{/literal} {$clientsdetails.fullname} {literal}',
  first_name: '{/literal} {$clientsdetails.firstname} {literal}',
  last_name: '{/literal} {$clientsdetails.lastname} {literal}',
  email: '{/literal} {$clientsdetails.email} {literal}',
  phone: '{/literal} {$clientsdetails.phonenumberformatted} {literal}',
  id: '{/literal} {$clientsdetails.userid} {literal}',
  status: '{/literal} {$clientsdetails.status} {literal}'
});
</script>
{/literal}

To track orders as 'events' in GoSquared:

If you'd like to track events such as 'orders' or 'tickets 'in GoSquared, add the following snippet to the appropriate template file.

<script>
_gs('event', 'YOUR EVENT NAME')
</script>

If you want to track orders in WHMCS, it is recommended to use the complete.tpl file in your order form's directory.

You can find this by going to:

path/to/whmcs/templates/orderforms/yourorderform/complete.tp

Frequently Asked Questions

Is the WHMCS module free to use?

Yes – you can download and install the GoSquared module for WHMCS for free. You may need to pay for WHMCS and GoSquared depending on current pricing of both platforms.

How long does it take to see data in GoSquared after installing?

All data in GoSquared is real-time, so when you install the GoSquared JavaScript Snippet on your WHMCS website, you should see data flow into your GoSquared Analytics dashboards instantly. To test your installation, try opening your WHMCS website in a private browsing window, and then check GoSquared again. If you continue to experience issues, double check the steps here and reach out to us if you have any questions.

Did you find this article helpful?