Matching Rule Details
Matching Rule Details
In experience delivery conditions, page groups, conversions, and event settings, you define conditions for matching data using the rules below.
Contains
Define URLs that contain a specific character string. For example, if you register "abc.com" as "contains," the following URLs are included in the target:
https://abc.com/lp
https://abc.com/company
https://abc.com/company/contactDoes Not Contain
Define URLs that do not contain a specific character string.
For example, if you want to target all pages except blog pages, register "example.com/blog" as "does not contain."
When there are multiple entries in the input field
If any of the entries are included, they are excluded from the target.
For example, if you set it up as follows, users who access two pages (access to either one) are excluded from the campaign target.
The same applies when only entering a subdirectory.
The following URLs cannot match any of the conditions and are excluded from the experience display target.
Prefix Match
Define URLs where the registered character string matches the beginning of the URL.
This is often used when URLs containing query parameters are the target.
For example, suppose the following URL is issued when a specific visitor (id=9982251615) visits.
If you register the above URL with a prefix match, visits from users other than id=9982251615 are not defined as the target.
If you want to limit to page=1 and target all user IDs, register the following URL with a prefix match.
Also, if you want to include pages other than page=1 in the measurement target, register the following URL with a prefix match.
Suffix Match
Define URLs where the registered character string matches the end of the URL.
For example, if you register "/test/index.html" with a suffix match, the following URLs are defined as the target.
In this case, the following URL with a different prefix string is also defined as the target.
However, the following URL is not defined as the target because the suffix is not "/test/index.html".
Exact Match
Define URLs that match exactly, word for word, with the registered URL.
Regular Expression
Regular expressions are a way of expressing multiple character strings in a single format.
By using regular expressions, you can define conditions with greater flexibility.
Regular Expression Grammar
Regular expressions are used to search for strings that match a regular expression pattern from large amounts of data.
Special symbols are used to specify conditions for definition.
These are called special characters or metacharacters and can be categorized mainly into wildcards, anchors, and grouping.
Each is explained below.
Wildcards
Anchors
Grouping
Other
Common Regular Expression Combinations
When the domain prefix matches exactly and ends with / or ? parameters
When you want to group URLs that contain http or https and subdomains
When you want to group by the same subdirectory
When you want to group URLs that contain http or https and have the same main domain in the same subdirectory
When you want to group URLs where the id is in a specific range (6984604 to 6984783)
Regular Expression Validation Tool
You can verify whether your regular expression syntax is correct using tools like this.
※ If you have any questions during setup, please feel free to contact us via the in-product chat.
最終更新