Leading Variations in H4 Tags

Leading Variations in H4 Tags counts how many of a page’s H4 headings begin with a keyword variation. It is a count of matched fourth-level headings, not a quality score — a page with few or no H4s can be perfectly correct, so read it as an observation about heading structure rather than a target to inflate.

Factor IDRG-HDG-022
FamilyHeadings
MeasurementLeading variation match count
Measured zoneH4 text

What it measures

This factor counts the H4 headings on a page whose text starts with a keyword variation. Only H4 (fourth-level) headings are considered, and only the leading edge of each heading is tested — a variation that appears later in the heading does not count. The result is a whole number: how many of the parsed H4s open with one of the tracked variations.

How RankGear measures it

RankGear evaluates every parsed H4 against a single case-insensitive regular expression. The expression’s alternatives are the sorted variation set, and its only anchor is at the start of the heading — so a heading matches when it begins with any variation in the set. Text after the matched phrase is allowed, and the match does not have to end on a word boundary.

What RankGear looks for

<h4>{variation} …</h4>

# case-insensitive, anchored to the start of the H4 text:
^(variation-a|variation-b|variation-c)
If the H4 reads…Counts?
Variation followed by more wordsYes — trailing words are allowed
Variation with no space before the next charactersYes — no word boundary is required at the end of the match
Variation appearing mid-heading, not at the startNo — only the leading edge is tested

How to optimize it

Begin an H4 with a variation only when that phrase accurately introduces a valid lower-level subsection. Treat this as an observation about how your deepest headings are structured, not a quota to hit: forcing variations onto H4s that don’t warrant them harms readability without earning anything. If a page is shallow and has no genuine fourth-level subsections, having zero matching H4s is the correct outcome.

Important considerations

  • Additional words after the matched variation are allowed — the heading only has to start with the variation.
  • The matcher does not require the variation to end at a word boundary, so a variation immediately followed by other characters still counts.
  • For compatibility, variation regex characters are left unescaped, which can affect how certain variations are interpreted by the pattern.
  • A shallow page may correctly have no H4 headings at all; a count of zero is not inherently a problem.
  • This is a correlation-based prioritization signal within a measured result set — it relates to position among compared pages and does not make a page rank or guarantee any ranking.

Related factors

Part of the Factors reference · how RankGear measures · glossary.