In this tutorial you'll learn how to integrate Google Tag Manager with your WHMCS Template.
Open the following file:
/whmcs_path/templates/your_template/includes/head.tpl
Add your copy of the head code provided within your Google Tag Manager account to the bottom of this file in the following format:
{literal}
Google Tag head code goes here
{/literal}
The literal tags are used to stop the curly brackets within the code conflicting with WHMCS.
Open the following file:
/whmcs_path/templates/your_template/includes/footer.tpl
Add your copy of the body code provided within your Google Tag Manager account to the bottom of this file using this format:
{literal}
Google Tag body code goes here
{/literal}
Having problems?
If Google Tag Manager is not working or you have any questions free to leave a comment below and we'll be happy to help.
Request Support
We hope you found this documentation useful. If you run into any issues we will be happy to assist you.