This factor counts the nonblank slash-separated segments in a ranking result’s URL path — a plain measure of how deep the URL sits in a site’s structure. It counts path segments, not real server directories, and a deeper path is neither inherently better nor worse for position.
| Factor ID | RG-SRP-032 |
|---|---|
| Family | Search Result URL |
| Measurement | Count |
| Measured zone | Parsed result URL path |
What it measures
The factor reports the number of nonblank, slash-separated segments in the result URL’s path. It is a simple depth reading of where a page lives in a URL hierarchy — a shallow path like /pricing returns one segment, while a nested path like /guides/seo/technical/crawl-budget returns four. A trailing slug counts as a segment.
How RankGear measures it
RankGear takes page.urlPath, splits it on the / character, trims whitespace from each segment, discards any empty values, and counts what remains. Because empty values are dropped, leading, trailing, and doubled slashes do not inflate the count — only genuine path segments are counted.
segments = urlPath.split("/")
.map(trim)
.filter(nonempty)
count = segments.lengthHow to optimize it
Treat this value as an observation about your URL architecture, not a target to push up or down. Use a shallow or nested path structure according to your real information architecture: let the URL reflect how content is genuinely organized. Keep segments descriptive and stable, and avoid adding artificial folders purely to place keywords in the path. There is no depth number to chase here — a clean, meaningful structure is the goal.
Important considerations
- The value counts path segments, not actual server directories — it reads the URL string, not the file system behind it.
- A final slug counts as a segment, so a leaf page always registers at least one level of depth.
- URL depth is not inherently good or bad; a deeper path is not a penalty and a shallow path is not a reward.
- Restructuring established paths requires careful redirects, canonicals, and internal-link updates to avoid losing signals during the change.
- This is a descriptive signal that relates to how results in a set are structured; it does not by itself cause or guarantee any ranking position.
Related factors
Part of the Factors reference · how RankGear measures · glossary.