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

Avatar

Avatar

josed30633309

Avatar

josed30633309

josed30633309

08-10-2020

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!

classification rule builder classifications

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar

Khurshid_Alam

Employee

Avatar

Khurshid_Alam

Employee

Khurshid_Alam
Employee

14-10-2020

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

Avatar

jkm-disco

Avatar

jkm-disco

jkm-disco

08-10-2020

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