Sub-classifications and the Rule Builder

You can combine the Classification Rule Builder with sub-classifications if you ensure that every sub classification has a parent value.

Combining the Classification Rule Builder with sub-classifications can simplify classification management and reduce the number of rules required. You might want to do this if your tracking code consists of codes that you would like to classify separately.

See Sub-Classifications for conceptual information about sub-classifications.


Assume the following tracking code:


A classification hierarchy allows you to apply a classification to a classification (called sub-classification). Meaning, you can use the importer like a relational database, with multiple tables. One table maps full tracking codes to keys, and another maps those keys to other tables.

After you have this structure in place, you can use the Classifications Rule Builder to upload small files that only update the lookup tables (the green and red tables in the preceding image). Then, you can use the rule builder to keep the main classification table up-to-date.

The following task describes how to accomplish this.

Set up Sub-Classifications using the Rule Builder task_2D9016D8B4E84DBDAF88555E5369546F

Example steps that describe how you can upload sub-classifications using the Rule Builder.

These steps describe how to accomplish the use case described in Sub-Classifications and the Rule Builder.
  1. Create classifications and sub-classifications in the Classification Manager.


    Step Info

  2. In the Classifications Rule Builder, classify the sub-classification key from the original tracking code.

    You perform this using a regular expression. In this example, the rule to populate Broad Campaign code would use this regular expression:

    table 0-row-5 1-row-5 2-row-5
    # Rule Type Match Set Classification To
    Regular Expression [^\:]:([^\:]):([^\:]) Broad Campaign code $1
    Regular Expression [^\:]:([^\:]):([^\:]) Creative code $2
    note note
    At this point, you do not populate the sub-classifications Campaign Type and Campaign Director.
  3. Upload a classification file that includes only the sub-classifications specified.

    See Multiple-Level Classifications.


    table 0-row-6 1-row-6 2-row-6
    Key Channel Broad Campaign code Broad Campaign code^Campaign type Broad Campaign code^Campaign Director
    * 111 Brand Suzanne
    * 222 Brand Frank
  4. To maintain the lookup tables, upload a small file (as shown above).

    You would upload this file, for example, when a new Broad Campaign code is introduced. This file would apply to previously classified values. Likewise, if you create a new sub-classification (such as Creative Theme as a sub-classification of Creative code), you upload only the sub-classification file, rather than the entire classification file.

    For reporting these sub-classifications function exactly like top-level classifications. This reduces the management burden required to use them.–>