Classification help request

Avatar

Avatar
Validate 1
Level 1
Fox_mulder007
Level 1

Likes

4 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 1
Fox_mulder007
Level 1

Likes

4 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
Fox_mulder007
Level 1

29-09-2020

Hi there,

 

Owing to some custom Adobe analytics instrumentation, we are not able to use the out of the box "Browser width" and "Browser height" dimensions.

 

As a consequence, we have enabled a new dimensions that allow us to capture the "browser width" and "browser height".

 

Here is an example of the value that we currently populate : "{""width"":1920,""height"":937}"

 

I would like to do two things :

  • Make a classification in order to extract individually each value (one for browser width and one other for "browser height"
  • Once the extraction is over, I would like to group these values under some buckets (one for browser width and one other for browser height) :
    • 100 to 199
    • 200 to 299
    • ...
    • 1000 to 1099

FYI, I already created the "traffic classification" then tried to build the rule via the "Classification rule builder" section but I'm currently struggling with the regexp.

 

Thank you in advance for your help !

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Seeker
Level 3
jkm-disco
Level 3

Likes

24 likes

Total Posts

130 posts

Correct reply

15 solutions
Top badges earned
Seeker
Contributor
Shape 1
Give Back
Affirm 10
View profile

Avatar
Seeker
Level 3
jkm-disco
Level 3

Likes

24 likes

Total Posts

130 posts

Correct reply

15 solutions
Top badges earned
Seeker
Contributor
Shape 1
Give Back
Affirm 10
View profile
jkm-disco
Level 3

29-09-2020

Hi @Fox_mulder007 ,

Part 1:

^"{""width"":([^,]*),""height"":([^,]*)}"$

sending $1 into the variable for width and $2 into the variable for height.

 

Part 2:

For this be sure to use sub classifications so that you can classify the already classified variable:

For 100-199,

^1[0-9][0-9]$

For 200-299,

^2[0-9][0-9]$

etc. mapping $0 to the corresponding range. 

If you don't want to use sub classification, you could just nest the two regular expressions and create the range from the initial value.