Installing Webchat on GoDaddy

Before you can install Webchat on GoDaddy, you’ll need to create a custom code snippet. 

To create the custom code snippet:

    1. If you haven’t already, copy the Webchat code to your clipboard.
    2. Open a text editor and paste your Webchat code. 
    3. Copy the following code snippet to the text editor. 

       

      <script>
        function insertJS() {
          // eslint-disable-next-line
          var body = window.parent.document.body;
          var jsScriptNode = document.createElement('script');
          jsScriptNode.setAttribute('type', 'text/javascript');
          jsScriptNode.setAttribute('src', 'https://connect.podium.com/widget.js#API_TOKEN=YOURTOKEN');
          body.appendChild(jsScriptNode);
        }
      var start = Date.now();
      var interval = 9;

      function main() {
         var body = document.body;
         if (body) {
           insertJS();
         } else if (Date.now() - start > 10000) {
           return null;
         } else {
           setTimeout(function () {
           main();
         }, interval);
           interval *= 2;
         }
        // console.log(window.parent)
      }
      main();

      </script>

    4. Locate your Webchat API token and replace the place holder text with your token.GoDaddy-7.png
    5. Copy the custom code snippet code to your clipboard.

To install the Webchat code on GoDaddy:

  1. Sign in to your GoDaddy administration account.
  2. Select your website.GoDaddy-1.png
  3. Click Edit Website.GoDaddy-2.png
  4. At the bottom of your Home page, click Add Section.
    goDaddyInstallation1.png
  5. Select HTML and click Add.
    goDaddyInstallation2.png
  6. In custom code, paste the Webchat code.
    goDaddyInstallation3.png
  7. Set forced height to 1 pixels.
    goDaddyInstallation4.png
  8. Click Done.
    goDaddyInstallation5.png
  9. Click Publish.
    goDaddyInstallation9.png
Attention: If you need additional help, visit the GoDaddy help center or contact Podium Support by logging into your Podium account and initiating a live chat.