Conditions

Conditions allow you to show different paywall content or styles based on user/device attributes or product information.

The Condition Component allows you to show components conditionally, based on the rules set.

Common use Cases:

  • Show badge if product is featured

  • Show Login Button if user is not already logged in

  • Show extra legal text if user is Trial Eligible

Conditional Styles

Conditional Styles allow you to override styles on a component based on rules.

Common use Cases:

  • Change button color if product is featured

  • Change button border if product is selected

  • Change title text if user is Trial Eligible

  • Change top margin is device is in Fullscreen Mode

Stacking Conditional Styles

You can create multiple blocks of conditional styles. On device, the paywall will apply all the rule blocks that are true.

If you have conflicting styles, the first block will take precedence.

Example:

In this example, Title Text is set to "Welcome Back" if the user is logged in and "Get started for free" if they are Free Trial Eligible.

If the user is both logged in and Free Trial Eligible, the top block is used and the title text will read "Welcome Back"

All Rule Options

NamespaceValueNotes

Device

Used on iPhone devices only. Currently cannot be previewed.

Device

Portrait Orientation

Used for tablet devices only.

Device

Landscape Orientation

Used for tablet devices only.

Platform Type

Apple Google Amazon Roku Web

Allows you to show components or styling based on the Device Platform Type

User

True if the user is logged in through Nami's Account Management SDK

User

True if the user is eligible for a trial offer on any product on the paywall.

Product*

Any number of products can be marked as Featured. Nami recommends 1.

Product*

Only 1 product at a time can be marked as selected

Product*

True if this product has a trial offer that the user is eligible for.

select one of your product entitlements

Can be used to configure different product display/components based on the tier of access. Must first configure Entitlements.

select one of your product groups

Only available when your paywall is in "Toggle Product Groups" mode.

Custom Variable

select a custom variable option

Collapse Open

True or False

Only applicable to the Collapse Header or components inside the Collapse Header

*Indicates rules are only available on items inside the Repeating Product Group

Last updated