Expand my Community achievements bar.

SOLVED

Classification Rule Builder Test does not match Reports

Avatar

Level 1

I have an issue with the Classication Rule Builder in which a rule that behaves correctly when tested returns values that are not correct in the report. Specifically, I’m using a the following rule:

  • Rule Type: Regular Expression
  • Matching Condition: ^(([^_|]*)_([^_|]*)_([^_|]*)_([^_|]*)_([^_|]*))\|(([^_|]*)_([^_|]*))\|(([^_|]*))\|(([^_|]*)_([^_|]*)_([^_|]*))\|(([^_|]*)_([^_|]*)_([^_|]*)_([^_|]*))$
  • Set classification: utm_campaign
  • To: $1

When I test this with:

‘mombaby_foc_17m8_care_hp-pn|video_|programmatic|w2045-twincities_demo_awareness|video_v1_birth_|mombaby_foc_17m8_care_hp-pn|video_|programmatic|w2045-twincities_demo_awareness|video_v1_birth_’,

utm_campaign is blank, indicating no match. However in the report, the same tracking code matches utm_campaign with:

‘mombaby_foc_17m8_care_hp-pn|video_|programmatic|w2045-twincities_demo_awareness|video_v1_birth_|mombaby_foc_17m8_care_hp-pn’

What is going on here?

1 Accepted Solution

Avatar

Correct answer by
Level 9

The regex you posted will not match the key you posted.  You can easily verify this by testing it in two different places in the rule builder, or online elsewhere (e.g. www.regex101.com). So,l if your classification report is getting popped with a value, then the value is coming from somewhere else.

Possible sources:

  1. Your posted CRB does not accurately reflect what you actually have
  2. You have another rule in your CRB matching it
  3. You imported classifications for that key via browser or ftp location
  4. The key was previously classified from something else (manually or automated)
    1. Sometimes there is funkiness with re-classifying columns vs. previously classified data. Especially if you rename columns instead of delete them, or delete them when they are not the last column listed. Did you recently re-classify the report? Try deleting all classification columns from the report and add them again.

.josh

View solution in original post

7 Replies

Avatar

Employee Advisor

You may have to consider that this specific rule may not be the one classifying it. if you have just written the rule, it could also mean that it has still not reflected in the reports.

Question: What part are you trying to classify in the above string in utm_campaign?

Avatar

Level 1
I have a similar issue, with a classification rule applied to product values.

Avatar

Level 1

This is the only rule that classifies utm_campaign.

I'm not trying to classify any part of the above string - it should not match. However, it is matching with ‘mombaby_foc_17m8_care_hp-pn|video_|programmatic|w2045-twincities_demo_awareness|video_v1_ birth_|mombaby_foc_17m8_care_hp-pn’ to $1.

$1 is the equivalent of '^([^_|]*_[^_|]*_[^_|]*_[^_|]*_[^_|]*)$', the first parentheses.

Avatar

Level 4

Did you try testing the match in the classification rule builder test window? Does it still match there?

Avatar

Correct answer by
Level 9

The regex you posted will not match the key you posted.  You can easily verify this by testing it in two different places in the rule builder, or online elsewhere (e.g. www.regex101.com). So,l if your classification report is getting popped with a value, then the value is coming from somewhere else.

Possible sources:

  1. Your posted CRB does not accurately reflect what you actually have
  2. You have another rule in your CRB matching it
  3. You imported classifications for that key via browser or ftp location
  4. The key was previously classified from something else (manually or automated)
    1. Sometimes there is funkiness with re-classifying columns vs. previously classified data. Especially if you rename columns instead of delete them, or delete them when they are not the last column listed. Did you recently re-classify the report? Try deleting all classification columns from the report and add them again.

.josh

Avatar

Level 2

I am having a similar issue.  I ran a classification rule builder test.  The results were perfect.  All columns populated with expected parsed attributes - But when I run a report I only see Unspecified.  The delimiter I am using is an underscore. 

cid=([^\_]*)\_([^\_]*)\_([^\_]*)\_([^\_]*)\_([^\_]*)\_([^\_]*)\_([^\_]*)\_([^\_]*)\_([^\_]*)\_([^\_]*)\_([^\_]*)\_([^\_]*)\_([^\_]*)\_([^\_]*)\_([^\_]*)\_([^\_]*)\_([^\_]*)Theme

Does it take some times to actually process in the reports?

Avatar

Level 1

I have a similar issue, with a classification rule applied to product values (details included here: https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/adobe-analytics-classific...

 

We have double checked all the recommendations presented here and everything seems to be fine (there is even no chance of other rule conflicting).

 

Do you have any idea on what may be causing this? Is this perhaps a known bug?