Skip to content

anurags10/SEO-Metadata-Tag-Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” SEO Metadata Tag Analyzer

A lightweight web application that evaluates website URLs for SEO optimization and provides actionable improvement suggestions. Built with React, this tool analyzes HTML metadata tags, headings, content structure, and styling best practices.

✨ Features

Core Analysis

  • Title Tag Analysis: Checks length, presence, and optimization (30-60 characters recommended)
  • Meta Description: Validates presence and length (120-160 characters recommended)
  • Meta Keywords: Optional check (not required for modern SEO)
  • Canonical URLs: Prevents duplicate content issues
  • Open Graph Tags: Social media sharing optimization
  • Twitter Cards: Twitter sharing optimization
  • Heading Structure: H1, H2, H3 hierarchy validation
  • Image Alt Text: Accessibility and SEO for images
  • Mobile Viewport: Mobile responsiveness check
  • CSS Best Practices: Styling and performance analysis

Scoring System

  • Weighted scoring out of 100 points
  • Visual score indicator with color-coded feedback
  • Detailed breakdown of each SEO factor
  • Priority-based suggestions (High, Medium, Low)

User Experience

  • Clean, modern dashboard design
  • Responsive layout for desktop and mobile
  • Real-time analysis with loading indicators
  • Export functionality (JSON and CSV formats)
  • Actionable improvement tips
  • Multiple analysis methods (URL + Manual HTML input)

πŸš€ Quick Start

Prerequisites

  • Node.js (version 14 or higher)
  • npm or yarn

Installation

  1. Clone the repository

    git clone <repository-url>
    cd seo-metadata-analyzer
  2. Install dependencies

    npm install
  3. Start the development server

    npm start
  4. Open your browser Navigate to http://localhost:3000

Build for Production

npm run build

🎯 How to Use

Method 1: URL Analysis

  1. Enter a URL: Input any website URL (with or without protocol)
  2. Click Analyze: The app will fetch and analyze the webpage
  3. Review Results: See your SEO score and detailed breakdown

Method 2: Manual HTML Input

  1. Get HTML Content: View page source of any website
  2. Copy HTML: Select all content (Ctrl+A, Ctrl+C)
  3. Paste & Analyze: Paste in the manual input field
  4. Get Results: Instant analysis without network issues

πŸ”§ Troubleshooting Common Issues

"Analysis Failed - All proxy services failed" Error

This error occurs due to CORS restrictions or proxy service limitations. Here are simple solutions:

βœ… Immediate Solutions

  1. Use Manual HTML Input (Recommended - 100% Success)

    • Click "πŸ“ Try Manual HTML Input Instead"
    • Copy HTML from the website's page source
    • Paste and analyze directly
  2. Try Different Websites

    • Some websites block proxy services
    • Test with popular sites like example.com
  3. Use Browser Extensions

    • Install SEO analyzer extensions
    • Analyze pages directly from your browser

πŸ”„ How the App Handles This

The app automatically tries multiple proxy services and provides clear fallback options:

  • URL Analysis with proxy fallbacks
  • Manual HTML Input (guaranteed to work)
  • Browser Extension recommendations

πŸ—οΈ Architecture

Frontend Structure

src/
β”œβ”€β”€ components/          # React components
β”‚   β”œβ”€β”€ UrlInput.js     # URL input and validation
β”‚   β”œβ”€β”€ ManualInput.js  # Manual HTML input fallback
β”‚   β”œβ”€β”€ ScoreCircle.js  # Circular score indicator
β”‚   β”œβ”€β”€ CheckItem.js    # Individual check results
β”‚   β”œβ”€β”€ Results.js      # Main results display
β”‚   └── Suggestions.js  # Improvement suggestions
β”œβ”€β”€ utils/
β”‚   β”œβ”€β”€ seoAnalyzer.js  # Core SEO analysis logic
β”‚   └── proxyService.js # Simple proxy fetching service
β”œβ”€β”€ App.js              # Main application component
β”œβ”€β”€ App.css             # Application styles
β”œβ”€β”€ index.js            # React entry point
└── index.css           # Global styles

Key Components

  • UrlInput: Handles URL input, validation, and form submission
  • ManualInput: Fallback for direct HTML analysis
  • ScoreCircle: Displays the overall SEO score with visual feedback
  • CheckItem: Shows individual SEO check results with status indicators
  • Results: Comprehensive results display with export functionality
  • Suggestions: Prioritized improvement recommendations

πŸ”§ Technical Details

SEO Analysis Algorithm

The scoring system evaluates 10 key SEO factors:

Factor Points Description
Title Tag 15 Page title optimization
Meta Description 15 Search result description
Meta Keywords 5 Keywords meta tag
Canonical URL 5 Duplicate content prevention
Open Graph 15 Social media optimization
Twitter Cards 10 Twitter sharing optimization
Heading Structure 10 H1, H2, H3 hierarchy
Image Alt Text 10 Accessibility and SEO
Mobile Viewport 10 Mobile responsiveness
CSS Best Practices 10 Styling and performance

CORS Handling & Proxy Services

  • Simple fallback system with multiple proxy services
  • Automatic retry logic when services fail
  • Manual HTML input as guaranteed fallback
  • Clear error messages with actionable solutions

Responsive Design

  • Mobile-first approach
  • CSS Grid and Flexbox for layouts
  • CSS custom properties for theming
  • Optimized for all screen sizes

🎨 Customization

Styling

The application uses CSS custom properties for easy theming:

:root {
  --primary-color: #2563eb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  /* ... more variables */
}

Adding New Checks

To add new SEO checks, modify src/utils/seoAnalyzer.js:

  1. Create a new analysis function
  2. Add it to the main analyzeSEO function
  3. Update the scoring calculation
  4. Add suggestions generation

πŸ“± Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ™ Acknowledgments

  • Built with React and modern web technologies
  • Simple proxy service integration for CORS handling
  • Manual HTML input fallback for maximum compatibility
  • Inspired by popular SEO analysis tools
  • Designed for developers and SEO professionals

πŸ“ž Support

If you encounter any issues or have questions:

  1. Check the troubleshooting section above for common solutions
  2. Use Manual HTML Input if URL analysis fails
  3. Check the Issues page
  4. Create a new issue with detailed information
  5. Include browser version and error messages

Happy SEO Analyzing! πŸš€

About

πŸ” SEO Metadata Tag Analyzer - A lightweight React web app that evaluates website URLs for SEO optimization, provides actionable suggestions, and features a beautiful bright/dark theme system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors