Contents

Chapter 1

Features

This chapter covers the core features and capabilities of Meta Tag Generator.

Features

  • Generates all essential meta tags from a single config
  • Full Open Graph support (og:title, og:image, og:type, etc.)
  • Twitter Card tags (summary, summary_large_image)
  • Validates your config and warns about common SEO mistakes
  • Title length check (Google truncates at ~60 chars)
  • Description length check (max 160 chars)
  • Missing canonical URL detection
  • Multiple output formats: tag block, full HTML document, JSON report
  • Strict mode for CI/CD pipelines (exit 1 on any issue)
  • Python stdlib only — zero dependencies

Quick Start

bash
# Generate meta tags from a config file
python src/meta_tag_generator.py --config examples/site_config.json

# Generate a full HTML document
python src/meta_tag_generator.py --config examples/site_config.json --format html

# Validate without generating output
python src/meta_tag_generator.py --config examples/site_config.json --validate-only

# Output as JSON report (great for CI/CD)
python src/meta_tag_generator.py --config examples/site_config.json --format json

# Write to file
python src/meta_tag_generator.py --config examples/site_config.json --output head.html
Chapter 2

Configuration Reference

Follow this guide to get Meta Tag Generator up and running in your environment.

Configuration Reference

Create a JSON file with these fields:

FieldTypeRequiredDescription
titlestringYesPage title (aim for 50-60 chars)
descriptionstringYesMeta description (aim for 120-160 chars)
charsetstringNoCharacter encoding (default: utf-8)
viewportstringNoViewport settings (default: width=device-width, initial-scale=1.0)
theme_colorstringNoBrowser theme color (e.g., #00FF88)
canonical_urlstringYesThe canonical URL for the page
languagestringNoHTML lang attribute (default: en)
authorstringNoPage author
robotsstringNoRobots directive (default: index, follow)
keywordsarrayNoList of keywords
og_typestringNoOpen Graph type (default: website)
og_titlestringNoOG title (falls back to title)
og_descriptionstringNoOG description (falls back to description)
og_imagestringYesOG image URL (1200x630 recommended)
og_image_widthintNoOG image width in pixels
og_image_heightintNoOG image height in pixels
og_urlstringNoOG URL (falls back to canonical_url)
og_site_namestringNoYour site/brand name
twitter_cardstringNoTwitter card type (default: summary_large_image)
twitter_sitestringNoTwitter handle (e.g., @yoursite)
twitter_creatorstringNoAuthor's Twitter handle
custom_metaarrayNoAdditional {name, content} meta tags

Example Config

See examples/site_config.json for a complete example.

Chapter 3
🔒 Available in full product

CLI Flags

You’ve reached the end of the free preview

Get the full Meta Tag Generator and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $19 →
📦 Free sample included — download another copy for the full product.
Meta Tag Generator v1.0.0 — Free Preview