Skip to main content

How to use a Static Prism

Show different content to different visitors in one popup, by step, country, page, or quiz answer.

Written by Rob D

A Static Prism shows different content to different visitors inside one popup. For example, you can show a different image on each step, different SMS consent text for US and non-US visitors, or a different link depending on a quiz answer.

How a Static Prism works

A Static Prism holds several versions of the same content, called variants. Each variant is a child element inside the Prism, and exactly one shows at a time.

Alia checks the variants from top to bottom and shows the first one that matches. Each variant has two settings:

  • Show this variant on steps: the steps this variant can show on. Leave it blank to make the variant a fallback that can show on every step.

  • Show this variant if: a rule, built with the same conditions as campaign targeting. A variant with no rule always matches.

Put your most specific variants at the top and the general one last. If nothing matches and there's no fallback, the Prism shows nothing.

Add a Static Prism

  1. In the popup editor, select + to open Add element.

  2. Under Content, choose Static Prism.

  3. Drag the content you want to change inside the Prism, so it's a child of the Prism, not next to it.

  4. To add another variant, duplicate the child inside the Prism with Clone in its ⋯ menu, then change its content.

A Static Prism in the popup editor with an image inside it as a child element.

Show a different image on each step

  1. Add a Static Prism and put your first image inside it.

  2. Select the image and set Show this variant on steps to the step it belongs on, such as your mini quiz step.

  3. Clone the image inside the Prism, set Show this variant on steps to the next step, such as the email step, and replace the image.

  4. Repeat for each step.

Set this up in the mobile and desktop templates if the image is in both.

Show different consent text by country

  1. On your phone step, add a Static Prism and put your SMS consent text inside it.

  2. Select it and add a Show this variant if rule: Country is US.

  3. Clone it inside the Prism and change the text in the copy for visitors outside the US. Leave this copy with no rule, so it's the fallback.

💡 Note: Use a fallback with no rule rather than a "Country is not US" rule. If Alia can't tell a visitor's location, a country rule doesn't match, so a visitor with an unknown location would see no consent text at all.

For Spanish or French, you can also use the sms_consent_es or sms_consent_fr variable instead of translating the text yourself.

Show the right country flag on the phone field

You don't need a Prism for this. Select the Phone input, and under Country codes, set Default country flag to IP Country or Shopify Country, with a fallback country.

React to a quiz answer

Use Property is in a variant's Show this variant if rule, with the question text as the property and the answer as the value. See Targeting users by properties in Static Prisms.

Check your variants

The editor shows one variant at a time and doesn't check rules, so the variants can look the same while you edit. To see them resolve, use Preview, or select Copy preview link next to a variant in the layer list to open your store with that variant showing.

Static Prisms inside components

If your Static Prism is inside a component, editing its contents, including its variants, changes it in every popup that uses the component. To remove it from one popup only, delete that instance from the popup.

Frequently asked questions

My Prism shows nothing on some steps. Why?

No variant matches that step and there's no fallback. Leave Show this variant on steps blank and Show this variant if empty on one variant, and put it last.

Why doesn't my rule apply?

The content is probably next to the Prism instead of inside it. Only the Prism's direct children follow its rules.

What's the difference between a Static Prism and Prism AI?

You set the rules in a Static Prism. Prism AI tests your variants and shows more of the ones that perform best. See Setting up Prism AI.

Still have questions?

Start a chat from inside the Alia app, or use the chat in our Help Center.

Did this answer your question?