Skip to content
Login Contact

How does Marfeel detect the section an article belongs to?

Marfeel auto-tracks article sections through a prioritized heuristics waterfall. The system checks four sources in order, using the first match it finds to classify content. This detection process is part of how Marfeel extracts metadata from articles.

  1. Include the mrf:sections meta tag in the page’s head. You can declare multiple sections separating them with a semicolon ; :

    <meta property="mrf:sections" content="Section1;Section2">
  2. JSON+LD. Read more details about Article Section

    <script type="application/ld+json">
    {
    "@context": "https://schema.org",
    "@type": "NewsArticle",
    "articleSection": ["Section 1","Section 2"]
    }
    </script>
  3. All og:article:section tags in the page’s head

    <meta property="og:article:section" content="Section 1" />
    <meta property="og:article:section" content="Section 2" />
  4. All meta tag article

    <meta property="article:section" content="Section 1">
    <meta property="article:section" content="Section 2">

Multiple sections can be declared using any of these methods:

  1. In mrf:sections separating them with a semicolon ;
  2. In JSON+LD declaring articleSection as an Array
  3. Using multiple meta tags article:section or og:article:section

Marfeel provides a standardized approach to tagging sub-sections and sub-sub-sections, enabling hierarchical content organization for proper analysis and optimized content production.

To tag a sub-section within an article, use the following syntax:

<meta property="mrf:tags" content="sub-section:[sub-section name]" />

To tag a sub-sub-section within an article, follow this syntax:

<meta property="mrf:tags" content="sub-sub-section:[sub-sub-section name]" />

Replace [sub-section name] and [sub-sub-section name] with the relevant name or label for the sub-section and sub-sub-section. For example, if your article covers the F.C Barcelona football team, you can use:

<meta property="mrf:sections" content="Sports" />
<meta property="mrf:tags" content="sub-section:Football" />
<meta property="mrf:tags" content="sub-sub-section:FC Barcelona" />

When using meta, the name attribute can be used as an alternative to the property attribute.

For strategic situations where you do not want to openly expose section names but still need to track them, you can use encrypted sections. When sections are declared as encrypted, the real values are only visible within Marfeel.

Learn more about encrypting sections, authors, and tags

If section values appear incorrect, use the metadata detection debugger to verify which source Marfeel is reading from.

What is the priority order for Marfeel section detection?

Marfeel uses a heuristics waterfall: first it checks the mrf:sections meta tag, then JSON-LD articleSection, then og:article:section tags, and finally article:section meta tags.

Can an article belong to multiple sections in Marfeel?

Yes. You can declare multiple sections by separating values with a semicolon in mrf:sections, using an array in JSON-LD articleSection, or adding multiple og:article:section or article:section meta tags.

How do you tag sub-sections and sub-sub-sections in Marfeel?

Use the mrf:tags meta tag with the syntax sub-section:[name] or sub-sub-section:[name] to define hierarchical content taxonomy within an article.