A Step-by-Step Guide to Embedding Alby on Your Website
Prerequisites
Before proceeding with the installation, make sure you have the following information ready:
- Your Brand ID (
brand_id
): This unique identifier connects your website to Alby. You can obtain this ID from your Alby contact. Without this, you won't be able to setup the Alby application on your website.
Inserting the Snippet
If you prefer to install the snippet using Google Tag Manager instead of modifying the direct source code, you can follow these steps:
- Log in to your Google Tag Manager account and navigate to your container.
- Create a new Tag with a Custom HTML configuration.
- Follow the same instructions as step 3 down below.
- Save, publish, and test your changes.
To add the snippet, follow these instructions:
- Open your website's source code.
- Locate the section of your code where you want to place the Alby embed script, typically just before the closing
</body>
tag. - Add the following code inside it:
<script
type="text/javascript"
src="https://cdn.alby.com/apps/launcher/embed.js?brandId=[BRAND-ID]"
></script>
Save and Publish
Save the changes you made to your the source code and publish your website. That's it! You've successfully added the Alby snippet to your website, enabling your customers to interact with the it seamlessly.
That's it! You've successfully added the Alby snippet to your website, enabling your customers to interact with the it seamlessly.