Description
Indepth Analytics Structured Metadata adds structured metadata tags to the <head> section of WordPress pages. The plugin outputs information about posts, pages, taxonomy archives, and search pages using custom indepth:* meta properties.
The plugin can also load an optional external header script configured by administrators from the WordPress dashboard.
Supported metadata includes:
- Content type (
indepth:type) - Featured image URL (
indepth:featured-image) - Publication date (
indepth:published-date) - Current language (
indepth:lang) - Categories and taxonomy terms (
indepth:categories) - Authors and author avatars (
indepth:authors,indepth:authors-thumbnails)
The plugin works with standard WordPress APIs and follows WordPress coding and security practices.
Features:
- Outputs
indepth:*metadata tags in the document head - Supports posts, pages, archives, and search results
- Optional taxonomy selection for category metadata
- Optional external header script loader
- Translation-ready
- Compatible with PHP 8.0 and newer
Installation
- Upload the
indepth-analytics-structured-metadatafolder to the/wp-content/plugins/directory. - Activate the plugin through the Plugins screen in WordPress.
- Open Settings → Indepth Metadata Settings.
- Select the taxonomies to include in metadata output.
- Optionally configure a header script URL.
FAQ
Where are the metadata tags added?
The plugin outputs metadata tags inside the <head> section using the wp_head action.
How are additional authors supported?
Additional authors can be stored in the indepth_analytics_authors post meta field as an array of user IDs.
Is the external script URL sanitized?
Yes. The URL is sanitized and validated before saving.
What PHP version is required?
PHP 8.0 or newer.
Changelog
1.1.0
- Reduced meta output to:
indepth:type,indepth:featured-image,indepth:published-date,indepth:lang,indepth:categories,indepth:authors,indepth:authors-thumbnails. - Removed
indepth:id,indepth:post-type,indepth:read-time,indepth:collaborators,indepth:collaborators-thumbnailsandindepth:translations. indepth:typeis now one ofhome(front page or blog home),single(posts) orpage(everything else).- Meta tags are now output on every front-end page, including search results and 404 pages.
- Added a “Settings” link to the plugin’s row on the Plugins screen.
1.0.1
- Lowered the minimum required PHP version from 8.2 to 8.0.
1.0.0
- Initial release.
- Added structured metadata output for WordPress content.
- Added taxonomy metadata support.
- Added optional external header script support.
- Added Polylang translation support.
- Added translation-ready language files.