Skip to main content

Setting up Dynamic lists

Updated over 2 weeks ago

With Dynamic lists, you can personalize your campaign content by automatically retrieving content to sections in your campaign.

These lists can, for example, be based on behavioral data or fetch specific articles and information directly from your website.

What you need to set up

  1. Make sure the pages to retrieve content from are Open Graph optimized.

  2. Determine which Open Graph tags you want to use. For example, 'title', 'description', 'image', and 'URL' etc.

  3. Create a publicly accessible page with a JSON list of the web pages to retrieve from. The page you set up should look like the example below (https://helpers.rule.se/dynamic_list.html)

When creating blocks, you need to take into account the number of products, articles, or other things in the JSON contained in the link and the number of columns you want to create in the block.

The number of items in the JSON link needs to match how many columns the block has. For example, use 2, 4, 6 items for a two-column block, or 3, 6, 9 for a three-column block. If not, the block might not display correctly and will show empty columns.

How to add Dynamic List in Rule

Add a Loop block

  1. Select the type of source from which the data will be extracted. The source type is set to "News feed".

  2. Add the link with data to the "Source" field.

  3. Set the maximum number of times a loop will run before stopping.

  4. Create the appropriate block structure.

  5. Add og tag names to the variables that you plan to use in the block.

Max iterations setting

No "Max iterations" value selected

Since a two-column block is added to the loop, the number of iterations is determined automatically. It equals the number of items (articles, products, etc.) in the JSON divided by the number of columns in the block. For example, 4 Ă· 2 = 2. This gives 2 iterations, each displaying 2 products.

As a result, in the preview you will see a block with two rows, each containing two articles.

The number of iterations is 1.

In this case, the block will display data for only the first two products out of the four provided in the data link.

Did this answer your question?