Skip to content
Login Contact

How to specify custom tags and taxonomies of an article

Article tags in Marfeel let you organize, search, filter, and analyze your content using custom labels. Each tag classifies articles by subject, theme, or any criteria you define, and you can apply one or more tags to any article.

Tags can be used to group articles for things like:

  • Article type: Categorize as article, longform, branded, gallery, and more.
  • User needs: Tag articles as per user requirements, such as “update me,” “keep me on trend,” “give me perspective,” “educate me,” or “inspire me.”
  • Editorial categories: Assign tags based on content description or keywords.
  • Embeds: Tag articles based on the elements they have like Embed:Poll, Embed:TwitterBox, Embed:TikTok

All tags applied to an article are discoverable via any of the article’s nested tags.

Declare custom tags and taxonomies using the mrf:tags meta tag. Both the property and name attributes are supported interchangeably.

<meta property="mrf:tags" content="tagGroup1:tag_name;tagGroup2:another_tag_name" />

Separate multiple tags with a semicolon ;.

Tag groups (also called nested tags) use a colon-separated format like contentType:infography or contentType:blogPost. They add an extra layer of precision to your content classification by creating subcategories within a broader tag category.

The part before the colon is the Tag Group and the part after is the Tag Name. Working examples:

<meta property="mrf:tags" content="contentType:infography;userNeed:inspire" />
<meta property="mrf:tags" content="category:ukraine;userNeed:update" />

Both tag names and tag groups can include spaces, upper or lower cases, and any character except :. An article tagged with Ticker Symbol:AMZ generates a tag group named Ticker Symbol and a tag name AMZ.

To add multiple tags under the same tag group, repeat the full pair for each tag:

<meta property="mrf:tags" content="Ticker Symbol:AMZ;Ticker Symbol:GOOGL" />

Marfeel auto-tracks tags through a heuristics waterfall, checked in the following order:

  1. Meta tag mrf:tags. Added under each specific tag group.

    <meta property="mrf:tags" content="tagGroup1:tag_name;tagGroup2:another_tag_name" />
  2. From keywords in structured data. Added under keyword tag group.

    <script type="application/ld+json">
    {
    "@context": "https://schema.org",
    "@type": "NewsArticle",
    "keywords": "tag1, tag2, tag3"
    }
    </script>
  3. From data in og:article:tag (supports both property and name attributes). Added under keyword tag group.

    <meta property="og:article:tag" content="tag1" />
    <meta property="og:article:tag" content="tag2" />
  4. From meta keywords. Added under keyword tag group.

    <meta name="keywords" content="tag1, tag2, tag3">
    • Note: According to the HTML specification, keywords must be comma-separated values in a single meta tag, not multiple separate tags
  5. Marfeel has an automatic system based on Tagging rules

These tag sources feed into content taxonomies dimensions that you can use for reporting and analysis.

You can also tag articles directly from the platform without modifying your site’s HTML. This is useful in situations like:

  • Breaking news where the Editor in Chief wants to track the performance of a group of published articles
  • Analysts performing a qualitative analysis on cherry-picked articles

To manually tag an article:

  1. Open the Compass View
  2. Click on the article you want to tag
  3. Scroll down until you see Tags & Topics.
  4. Click on Add and start typing your keyword. For example, when it’s ‘breaking news’, insert keyword:breakingnews and click on + Create 'keyword:breakingnews'. The tag applies instantly, so you can switch to the real-time Compass view and start filtering on it right away.

Compass article detail showing the Tags and Topics section with the Add button for manual tagging|690x401

You must repeat the tag category for each tag value, using ; as the separator.

  • This is correct:
<meta property="mrf:tags" content="category:sports;category:football;topic:world_cup;topic:finals" />
  • This is incorrect (missing repeated category):
<meta property="mrf:tags" content="category:sports, football;topic:world_cup, finals" />

Commas can cause conflicts with certain meta tags that Google and other platforms expect to use commas for their own purposes. Always use the semicolon ; separator to break tags into distinct values instead of comma-separated lists.

You cannot use ;, ,, and : as literal characters in tag names. You also need to escape " or ' to produce valid HTML, depending on how you encapsulate the attribute values.

For situations where you need to track tag values in Marfeel without exposing them publicly, you can use encrypted tags. When tags are declared as encrypted, the real values are visible only within Marfeel.

Learn more about encrypting tags, authors, and sections

Where does Marfeel extract article tags from?

Marfeel auto-tracks tags through a heuristics waterfall: first from the mrf:tags meta tag, then from keywords in JSON-LD structured data, then from og:article:tag meta tags, then from meta keywords, and finally through automatic tagging rules.

How do tag groups work in Marfeel?

Tag groups use a colon-separated format like contentType:infography. The part before the colon is the Tag Group and the part after is the Tag Name. Both can include spaces and any character except colons. To add multiple tags under the same group, repeat the full group:name pair separated by semicolons.

Can I add tags to articles manually in Marfeel?

Yes. Open the Compass View, click the article, scroll to Tags & Topics, click Add, type your keyword in group:name format, and create it. The tag applies instantly and is available for filtering in real-time Compass views.