URL Rule

Ptengine supports five kinds of URL Rules when setting up page, page group, and conversion settings: for you: include, head match, end match, exact match, regex.

Include means that any URL containing your chosen specified string will be included as part of the Group. For example, if you specify “abc.com” in the Include URL rule, then “abc.com.contact” and other similar URLs will fall under this rule.

Head Match creates a rule for all URLs that contain an exact match to the URL you specify from the first character to the last character you specify, though they may also contain additional data as well.
For example, one registered user’s unique ID is “http://www.example.com/checkout.cgi?page=1&id=9982251615″. The rest of the URL excluding the user’s unique ID contains site content you’d like to monitor. You’d also like to monitor the same pages while another registered user is logged in. Use “http://www.example.com/checkout.cgi?page=1″ as the target website, and select “Head Match” as the URL rule.

End Match creates a rule for all URLs that contain a match from the last character in the URL to the first character in your specified URL. Say you wanted to monitor all the pages accessed by a registered user of your site. In the example above, “http://www.example.com/checkout.cgi?page=1&id=9982251615″ you would specify “&id=9982251615″ and select “End Match.”

Exact match establishes a rule for a one-to-one match with the specified URL.

A Regex, also known as a regular expression, uses special characters to establish flexible matches or wildcard matching. This is useful when the URLs for the same page may have a varying stem, trailing parameters, or both.Regex rule parameters include: Wildcard, Locator, Grouping, Other.

Wildcards can be used to replace one or more real characters to create a match for all instances that may vary according to the parameters you specify. Below are some frequently used wildcard statements.


Locators create a match based on a fixed point, usually at the beginning or end of a field.



Note: Regular expressions should be as simple as possible, to ensure ease of use and understanding for you and your colleagues in analyzing your data.