Expand my Community achievements bar.

Join us at Adobe Summit 2024 for the Coffee Break Q&A Live series, a unique opportunity to network with and learn from expert users, the Adobe product team, and Adobe partners in a small group, 30 minute AMA conversations.
SOLVED

Adobe Analytics Classification Rule - Matched values showing as "Unspecified"

Avatar

Level 1

We identified a issue with a Classification Rule for one of our clients. It is an odd case we have not found any documentation about.

 

While applying classification rule on the product values:


1. There is a classification rule created using a Regex, that sets one constant value as a result. Here is the expression:

 

.*Promo.*Streaming\s-\s[1-4]mo.*|MobileOAC:Promo - Premier Streaming - 6mo - 30.00 - 1moFO|.*Trial.*Streaming\s-\s[1-4]mo.*

 

josed30633309_0-1602174771418.png

 

2. When running a test on the set of values, they are all classified as expected (screenshot 2). Here is a sample product value that passes the test:

Trial - Essential Streaming - 3mo - 0.00 - 1moFO - wETF(6mo70) - AMZ DOT-G3

 

josed30633309_1-1602174771430.png

 

3. However when looking at the reports, that particular sample product value (and many others) are listed under "Unspecified" and not with the right value. 

 

More than 72h have passed since the classification was created, and nothing has changed.

 

 

josed30633309_2-1602174771442.png

 

 

Do you have any idea on what may be causing this?

 

Thank you in advance for your help!

1 Accepted Solution

Avatar

Correct answer by
Level 6

Hi @josed30633309 ,

 

There are too many things that could go wrong with the given regex. You may want to make it a bit more robust.

Just as a starting point you should change how your "Or" logic works with a non-capturing group and there's a rogue period that was probably meant to be escaped:

e.g. (?:.*Promo.*Streaming\s-\s[1-4]mo.*|MobileOAC:Promo - Premier Streaming - 6mo - 30\.00 - 1moFO|.*Trial.*Streaming\s-\s[1-4]mo.*)

but there are is probably a better solution if you know everything that could possible appear in this product string:

e.g. ^(?:MobileOAC:)?(?:Promo|Trial)(?:\s-\sEssential)?\sStreaming\s-\s[0-9]mo\s-\s[0-9]?[0-9]\.[0-9][0-9]\s ...<any other optional fields>... (?:AMZ DOT-G3|<some other finishing text>)$ where you have clearly defined the beginning and end of the string as well as the optional fields.

 

All the best,

Jacob

View solution in original post

6 Replies

Avatar

Correct answer by
Level 6

Hi @josed30633309 ,

 

There are too many things that could go wrong with the given regex. You may want to make it a bit more robust.

Just as a starting point you should change how your "Or" logic works with a non-capturing group and there's a rogue period that was probably meant to be escaped:

e.g. (?:.*Promo.*Streaming\s-\s[1-4]mo.*|MobileOAC:Promo - Premier Streaming - 6mo - 30\.00 - 1moFO|.*Trial.*Streaming\s-\s[1-4]mo.*)

but there are is probably a better solution if you know everything that could possible appear in this product string:

e.g. ^(?:MobileOAC:)?(?:Promo|Trial)(?:\s-\sEssential)?\sStreaming\s-\s[0-9]mo\s-\s[0-9]?[0-9]\.[0-9][0-9]\s ...<any other optional fields>... (?:AMZ DOT-G3|<some other finishing text>)$ where you have clearly defined the beginning and end of the string as well as the optional fields.

 

All the best,

Jacob

Avatar

Level 1

Hi Jacob,

Thank you for your reply. I totally agree that there are multiple ways to create the Regex, and we have tried multiple ones, from a very tight one as you suggested to the simpler one I included in the posted question. The result is the same.

 

The point here is different. The Regex was tested, using the Classification Rules testing tool, and with an independent tool. In both cases the Regex matches the cases in question. This doesn't seem to be a Regex issue. 

 

 

Avatar

Employee Advisor

Depending on look back period you have selected for the rule, the value can still be Unspecified if it is an old one (that means the value arrived in your reporting beyond the look back period). If that is not the case and you are still seeing the issue, please contact Customer Care to help troubleshoot this.

Avatar

Level 1

Hi Khurshid,
Thank you for pitching in. There is actually to time limitation for the rule in question, and it is not because the entries are too old. Even more recent entries are impacted. 

It is just very odd. I don't think I am the only one seeing this. I posted this same question on the #measure Slack channel and some participants confirmed they have seen this behaviour, however they have not idea why does this happen.

Avatar

Employee Advisor
I would recommend reporting this to Customer Care so that it can be investigated further.

Avatar

Level 10
Do any of the answers below answer your initial question? If so, can you select one of them as the correct answer? If none of the answers already provided answer your question, can you provide additional information to better help the community solve your question?