Embed Composer
Embeds are built based on a set of blocks, and they can be installed on your website using a single embed code. The code embedded can display the block(s) in 3 different ways:
- All blocks together: Display all the blocks at the same time
- One by one: Show blocks in the list in a sequential order, one by one, each time the same visitor enters the page
- Random selection: Choose a random block from the list to display
How to Use the Embed Composer
To create an embed you need to login to your dashboard and navigate to Embed Composer from the left side menu. Then click on New Embed.
Insert the embed name and choose the embed mode from the list, then click Save. You will be then redirected to the embed details page where you can add your blocks.
Click on Select Blocks and pick the blocks you like — you need to have at least 1 block created previously on your dashboard. Click Select Blocks within the popup to add the blocks. You can now sort the blocks, change the selection, and check the details.
Click Embed to use the embed code and install the blocks on your website.
Choose either direct or iframe embed following the instructions on that page. That's it — now you should see the blocks display as a collection, with the mode selected.
Relation with Block Triggers
The embed composer has no relation with the block triggers — it's simply a way to embed multiple blocks with the same code. Triggers will act independently after they get fired on your website.
For example, a common use case for using triggers is scheduling a block display. If you like to use 2 blocks and display 1 on Monday, and 1 on Tuesday, you will need to use the embed composer with the display mode All Blocks Together. This will make sure the blocks are present, but the trigger will allow the display of the 1st block on Monday and the 2nd block on Tuesday.
Any display that is not based on visitor entering the page, and based on Triggers, will require the embed mode All Blocks Together. Otherwise, some blocks won't show as expected.
If you need to test the embed before using it on your website, you can visit the link within the iframe code.
That's it — you now know what embed composers are and how to use them.