Content & Media
For publishers, blogs, and content sites: Get "By author" and "By section" in the Content & Media dashboard. Data is captured from your existing page views—no custom events required.
How author and section are captured
- Author is read from
<meta name="author" content="...">in the page<head>, or from JSON-LDBlogPosting/Articleauthor.name. - Section is read from
<meta property="article:section" content="...">(orname="article:section"). If missing, you can map URL paths to section names in the script config (e.g./blog→ "Blog").
The WysLeap script runs on every page view and attaches author/section to that page view automatically. You do not need to send separate events.
Option 1: Meta tags (recommended)
Add these to the <head> of your blog or article pages. Works with any CMS (WordPress, Ghost, custom, etc.).
<!-- Author (for By author in Content & Media) -->
<meta name="author" content="Jane Doe">
<!-- Section (for By section) -->
<meta property="article:section" content="Blog">If you use JSON-LD for articles (e.g. BlogPosting with author.name), we also read author from that when the meta tag is missing.
Option 2: Path → section mapping
If you can't add meta tags but use fixed URL prefixes (e.g. /blog, /articles, /docs), pass a contentSections map when initializing WysLeap. Paths are matched from longest to shortest.
WysLeap.init({
siteId: 'your-site-id',
apiKey: 'your-api-key',
options: {
contentSections: {
'/blog': 'Blog',
'/articles': 'News',
'/news': 'News',
'/docs': 'Resources',
'/learn': 'Resources'
}
}
});Built-in defaults (no config needed): /blog → "Blog", /use-cases → "Use Cases", /resources → "Resources".
Where to see the data
After installation, go to Analytics → Content & Media. The "By author" and "By section" sections show pageviews grouped by author and section. "Top next paths" shows where readers go after a given page.
Get started with WysLeap