- Navigate to the following directory:
/var/www/pterodactyl/resources/views/templates
. - Open the
wrapper.blade.php
file using a text editor. - Add the following code just before the
</head>
tag:
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/YOUR_TAWKTO_API_KEY/default';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>
Note: Dont forgot to replace the YOUR-TAWKTO-API-KEY
with your actual Tawk.to chat API key.
- Save the changes and restart Pterodactyl.