Build a pages matching rule
When creating a web or code-based experience configuration, you can build a Pages matching rule to target multiple URLs matching the same rule. You can therefore apply the same content changes across multiple pages at once.
For example, you may want to apply the changes to a hero banner across a whole website, or add a top image that displays on all the product pages of a website.
-
When configuring your web or code-based experience, select Pages matching rule.
-
Define your criteria for the Domain and Page fields.
NOTE
Check the available operators in this section.For example, if you want to edit elements that are displayed on all the women product pages of your Luma website, select Domain > Starts with >
luma
and Page > Contains >women
. -
If your use case cannot be modeled using one rule, you have the option to add multiple rules. Click Add another page rule and repeat the step above.
NOTE
You can add up to 10 rules. -
You can use the Or or Exclude operators between the different rules.
Exclude is useful when one of the pages that match the rule defined should not be targeted. For example, you can target all
luma.com
pages that containproduct
, excluding the following page:https://luma.com/blogs/productinfo
. -
Enter the Default authoring and preview URL. This step ensures that the pages generated or matched by the rule have a designated URL for both content creation and preview purposes.