Skip to content

Instantly share code, notes, and snippets.

@ItzCrazyKns
Last active April 15, 2023 14:34
Show Gist options
  • Save ItzCrazyKns/978f7b73ecdfb2108fac69388bfe7c6c to your computer and use it in GitHub Desktop.
Save ItzCrazyKns/978f7b73ecdfb2108fac69388bfe7c6c to your computer and use it in GitHub Desktop.
Add tawk.io In Pterodactyl

To add tawk.io in Pterodactyl follow these steps :-

  • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment