Deploying on your website

Deploying on your website

Written by Grace Williamson
Last update: czwartek, lip 22, 2021

To complete this process, you will need access to your website source code, you want to be comfortable editing HTML (or have a webmaster/developer who can help you), and have a Slaask account already set up.

To add the Slaask code to your website:

1. Find your Slaask code snippet

Sign in to your Slaask account

Once you are logged in to your Slaask on slaask.com, click on Deploy, in the left-hand side menu.

Find your Smart Code snippet in the Deploy section. It is the code with several lines of JavaScript in a box. Everything in the box is part of your Smart Code snippet. It starts with <script> and ends with </script>.

The code contains a unique Slaask key that corresponds to one of your Slaask chatboxes. You cannot reuse the same code snippet on multiple domains. Your key starts with "spk".

2. Copy your Slaask code snippet

Copy the snippet but do not edit it. You might want to paste it into a text document if you're worried about accidentally losing or changing the snippet from your clipboard.

3. Paste your Slaask snippet

Paste your snippet (unaltered, in its entirety) onto every web page that will provide the Slaask customer service app to your visitors. We recommend you paste it immediately before the closing </body> tag.

If you use templates to generate dynamic pages for your site (if you use Rails, PHP, ASP, or a similar technology), you can paste the Smart Code snippet into its own file, and then include it in your page header.

If you use the advanced version of the snippet code: Please note that if you modify the snippet code to add the ID of your contact, make sure that the unique ID entered is that of your user and not of your team. This ID must be a positive number, different from zero. Also, two different contacts must never share the same ID.

4. Check that it is working as expected

Once you have uploaded your website code (including the Slaask snippet):

  • Visit your website as a visitor. The Slaask chatbox should appear in the bottom right-hand corner of your website.

  • Click on it and type something (such as: "Hey! Do you read me?')

  • In a new tab, open your Slack app. You should find your message in a new and temporary channel, starting with "#-s"

  • If you can see your message, it means your Slaask integration works like a charm! Congrats! 🎉

Otherwise, if you followed this process but it doesn't seem to be working, please reach out to us so that we can help you through the process.

Deploy

Easy steps to install our product on any platform!

19 article in this category.
Written by Grace Williamson.