Matryoshka attribution builds a word-boundary prefix hierarchy that automatically rolls up child variants into parent roots, calculating both exclusive and inclusive counts while supporting manual apex overrides.

graph TD
    Root[BetMGM] -->|Prefix Match| Child1[BetMGM Casino]
    Root -->|Prefix Match| Child2[BetMGM Poker]
    Root -->|Exclusive: 20| Total[Inclusive Total: 35]
    Child1 -->|Exclusive: 10| Total
    Child2 -->|Exclusive: 5| Total