Beacon can be easily embedded on your webpage by just pasting the code that is provided on your dashboard. In the documentation, you will find video tutorials on how to install beacon window on commonly used channels for creating websites. The main procedure remains the same for all the other channels too, you can contact me if you have some problems in installing the beacon window. The embed code follows the following structure.
<!-- This is the beacon-app element, it supports
certain attributes that can be found in SDK. Use it
directly in your web page -->
<!-- This script contains the main magic, use it wherever
you decide to add the beacon-app element -->
<beacon-app>tags should be present on the same page for beacon window to work correctly.
Follow the following steps to get the Beacon embed code.
- Go the main dashboard overview page (once you are logged in).
- Select a Beacon from the list that you want to embed. This will open the Beacon editor.
- Click on the
Embedbutton, this will open a dialog with the embed code that you can copy.
- Additionally, you can modify the Position of the beacon window on your page.
The position of the beacon window can be changed while embedding it on the web page. The
<beacon-app>element has an attribute
posthat sets the position of the beacon window on the page. These are the positions that Beacon currently supports along with how it can be added to the
- Bottom left -
- Bottom right -
By default, the position is Bottom left.
After adding the
posattribute, the code looks like
<beacon-app key="<BEACON_KEY>" pos="right"></beacon-app>