Documentation Center

Excluding Pages Components or paths from being tracked

You can exclude Pages or Components by ID in the Exclude element in the cd_wai_conf.xml configuration file.

Procedure

  1. Open the Profiling & Personalization configuration file cd_wai_conf.xml in a plain-text or XML editor.
  2. In the <Exclude> element, specify the <Pages> and <Components> you want to exclude:
    Pages and Components are excluded by id. Separate each id using a semi-colon. You can specify ranges using hyphens (-) and semi-colons (;).
    <Exclude>
    	<Pages>1;2;4-100;125</Pages>
    	<Components/>
    	<Paths/>
    </Exclude>
  3. In the <Exclude> element, specify the <Paths>you want to exclude.
    Excluding Paths
    You can exclude one or more paths from the tracking framework using patterns. You can use a combination of strings and special wildcard indicators, such as '**', '*' and "?". Use a semicolon to separate the paths. The name to be matched is split up in path segments. A path segment is the name of a directory or file, bounded by /. For example, abc/def/xyz.java is made up of the segments abc, def and xyz.java.
    The segments of both the actual path name and the specified exclusion pattern are compared. If the pattern matches the existing path, the path, or files contained there, depending on what exclusion is specified, is excluded from tracking. The following are some exclusion rules:
    • When ** is used for a path segment in the pattern, then it matches zero or more path segments of the name.
    • If an exclusion pattern starts with a /, the string to compare against must also start with a /.
    • If an exclusion pattern does not start with a /, the string to compare against must not start with a /.
    • When a name path segment is matched against a pattern path segment, the following special characters can be used:
      • * matches zero or more characters
      • ? matches one character.
    Example PatternMatches
    **/*.jspAll .jsp files in a directory tree.
    test/a??.jspAll files which start with an a, two more characters and then .jsp, in a directory called test.
    **Everything in a directory tree.
    **/test/**/XYZ*All files, or directories, that start with XYZ and reside in a parent directory called test.
  4. Save and close cd_wai_conf.xml.