Custom Metrics: Page Count | Community
Skip to main content
Level 2
March 1, 2023
Solved

Custom Metrics: Page Count

  • March 1, 2023
  • 1 reply
  • 1183 views

Hello All,

 

We are a very large organization and have a lot of sites. Currently, we have a need to be able to see how many pages (approx.) are contained within a site so that we can better understand a percentage of how many pages are actually being used by visitors. We have custom dimensions where we can see all of the pages within the site, but that requires us first to drill down. This might be a long shot, but does anyone know of a way to create a custom metric that returns the number of pages that are on a site? Or possibly the number of a dimension items found within that segment or dimension? All ideas are welcome, thank you!

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 MandyGeorge

One thing I will add to @jennifer_dungan's comment is that, you should also make sure to take into account if a single page can have more than one value. For example, if your site is in multiple languages (like having an english and a french version of the same page) - will those bring in different values for the same page? Also, if you are using a page identifier that is based on the URL, any query string parameters at the end will also be a unique value.

Just a couple things to keep in mind when doing the distinct count. 

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
March 1, 2023

You can create a custom dimension using a function called "Approximate Distinct Count"

 

 

 

MandyGeorge
Community Advisor and Adobe Champion
MandyGeorgeCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
March 1, 2023

One thing I will add to @jennifer_dungan's comment is that, you should also make sure to take into account if a single page can have more than one value. For example, if your site is in multiple languages (like having an english and a french version of the same page) - will those bring in different values for the same page? Also, if you are using a page identifier that is based on the URL, any query string parameters at the end will also be a unique value.

Just a couple things to keep in mind when doing the distinct count. 

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
March 1, 2023

Good call out @mandygeorge ... when I deal with multi-language sites, I use one page value for all variants and use what essentially becomes a "lookup prop" to indicate what language the page is presented in... but you are right that not everyone would do that. (Or maybe some people would consider language variations as "unique" pages.... )