Automatically group data by Page Path Level | Community
Skip to main content
Adobe Employee
January 13, 2023
Solved

Automatically group data by Page Path Level

  • January 13, 2023
  • 1 reply
  • 2988 views

I want to view page views by path without creating segments for each path. e.g.

  • domain.com/path1/
  • domain.com/path2/
  • etc

To clarify, I want total page views of each page that occurs under /path1/, /path2/, etc created programmatically. Is there some way for Adobe Analytics to parse the URL into useable segments? I am reluctant to do this manually as it would require creating hundreds of segments, many of which can change names without notice. I want to be able to add some sort of autogenerated "Page Path Level 1" segment and have it automatically break down the analytics into totals for each top-level path.

 

I used Google Analytics previously and I was able to get this info, but I'm not sure how to in Adobe Analytics. Please let me know if there is a way to do this, or I can submit an Idea request. Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jennifer_Dungan

Thanks you both for the help. I'm not sure what the next step is after creating a classification rule, I had assumed that it would be available as a dimension, but that does not seem to be the case. 


It should be..but it displays a bit differently.

 

So let's say your base dimension that you are using is eVar1 and is called "Full URL" (hypothetically).

 

In Workspace you should see:

Full URL (eVar1)

 

 

Now, you have created a few Classifications, let's call them "Path Level 1", "Path Level 2" and "Path Level 3" for example.

 

In your Workspace Dimensions, you will see:

Path Level 1 (Full URL)

Path Level 2 (Full URL)

Path Level 3 (Full URL)

 

Notice that you do not see "eVar1" here, the your will see the classification name name and then the "sub context" of that dimension is the dimension name (rather than the identifier)... I believe this is because they were trying to save on display, but also your could in theory have multiple classifications that use the same name and are tired to different dimensions, so they use the name of the parent dimension.

 

You can make your life easier by finding the base dimension and all the classifications and applying one or more tags on them, then you can search by tag.

 

 

These classification dimensions are also available in Data Warehouse extractions, the display here should show as:

 

Path Level 1 (Full URL (eVar1))

For example. Here you do see both the parent dimension name and identifier.

1 reply

yuhuisg
Community Advisor
Community Advisor
January 14, 2023

Firstly, even though page URLs are in the beacons that are tracked to AA, AA will never provide a way for you to report by page URLs. So that means if you're seeing page URLs somewhere in your reports, then they've been tracked in props or eVars. I'm going to assume you use an eVar to track your page URL since eVars can store more characters than props.

With your page URL eVar, your next step would be to classify them. Classifying allows you to set additional data on your collected data, like a lookup table. Learn more about Classifications: https://experienceleague.adobe.com/docs/analytics-learn/tutorials/components/classifications/overview-of-classifications.html?lang=en and https://experienceleague.adobe.com/docs/analytics/components/classifications/c-classifications.html?lang=en

In your case, you'd want to have classifications on your page URL eVar for the various page path levels. E.g. you can have a "Page Path Level 1" classification applied to your page URL eVar, and that "Page Path Level 1" would be exposed as a dimension in Analysis Workspace, which you can then drop into any freeform table. That "Page Path Level 1" could contain the values "path1", "path2", etc.

Classification Rule Builder is the best solution for you to set your classified values properly from your page URLs. Take a look at https://experienceleague.adobe.com/docs/analytics/components/classifications/classifications-rulebuilder/classification-rule-builder.html?lang=en to learn how to use this feature.

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
January 15, 2023

I completely agree with @yuhuisg 

 

By using Regex rules, you can create your classifications to pull out path part 1, path part 2, path part 3, etc....

 

Then pass the value of the part into the classification.

 

Using your URL samples:

  • domain.com/path1/
  • domain.com/path2/

 

If you use a regex such as:

 

domain.com\/(\w*)\/

 

FYI this assumes your URL paths are just letters/numbers... if there is - or _ or other characters you will need to change the (\w*) part to accommodate those characters, something like ([-_\w]*)

 

Then in the classification you can use $1 to say that you want the second group matched with that regex to be used as the classification value. The part inside the ( ) is the group.

 

 

 

Since you are using Regex extraction for the values, you shouldn't need to manually do anything to pull new or changed URLs (unless new characters are introduced into your paths, but at least with classifications, you can reprocess data 6 months into the past, so you have time to adjust for changes)

 

Note: Classifications are processed every 4-6 hours, so this isn't good if you are trying to look at "Today's" data, as there will always be classifications that haven't yet processed.

 

Adobe Employee
January 23, 2023

It should be..but it displays a bit differently.

 

So let's say your base dimension that you are using is eVar1 and is called "Full URL" (hypothetically).

 

In Workspace you should see:

Full URL (eVar1)

 

 

Now, you have created a few Classifications, let's call them "Path Level 1", "Path Level 2" and "Path Level 3" for example.

 

In your Workspace Dimensions, you will see:

Path Level 1 (Full URL)

Path Level 2 (Full URL)

Path Level 3 (Full URL)

 

Notice that you do not see "eVar1" here, the your will see the classification name name and then the "sub context" of that dimension is the dimension name (rather than the identifier)... I believe this is because they were trying to save on display, but also your could in theory have multiple classifications that use the same name and are tired to different dimensions, so they use the name of the parent dimension.

 

You can make your life easier by finding the base dimension and all the classifications and applying one or more tags on them, then you can search by tag.

 

 

These classification dimensions are also available in Data Warehouse extractions, the display here should show as:

 

Path Level 1 (Full URL (eVar1))

For example. Here you do see both the parent dimension name and identifier.


Maybe I skipped a step? All I did was create a rule in Admin > Rule Classification Builder. The rule is active, but do I need to add the rule somewhere else?