Loading

Marketing Cloud Personalization | Considerations When Displaying Web Campaigns Based on a String in the URL

Julkaisupäivä: Sep 24, 2026
Kuvaus

In Marketing Cloud Personalization, you can restrict a Web campaign to pages whose URL contains a specific string. For example, you want to show a campaign only on pages that contain /category/1. However, if you specify /category/1 in "URL contains one or more of", the condition also matches URLs with unintended values. Examples include /category/10 and /category/100.

Ratkaisu

Important: "URL contains one or more of" and "URL does not contain any of" use partial matching. They do not match numbers or IDs in the URL exactly. If you specify /category/1, the condition also matches other values that contain that string, such as /category/10 and /category/100.

For example, a site has categories /category/1 through /category/19, and you want to show a campaign only on /category/1. Combine an inclusion and an exclusion to filter out the unintended values:

  • Inclusion ("URL contains one or more of"): /category/1
  • Exclusion ("URL does not contain any of"): /category/10, /category/11, /category/12, ..., /category/19

Note: This approach works only when you know all the IDs on your site in advance. If the ID range is large or unknown, you cannot list every value. Choose how to specify the target string based on the URL design of your actual site. Wildcards and regular expressions are not supported in these conditions.

After you configure the campaign, use Personalization Tools to verify that the campaign does not target unintended URLs. For details, see Debug Web Campaigns That Don't Display with Personalization Tools (Japanese only).

If the campaign still behaves unexpectedly, contact Salesforce Support.

Knowledge-artikkelin numero

005459612

 
Ladataan
Salesforce Help | Article