# Meitre Documentation Sitemap

> Complete site structure and content index for AI agents and human readers

## Navigation Tree

```
meitre-help.lovable.app
├── / (Public Documentation)
│   ├── Agency Tracking Guide
│   │   ├── #overview
│   │   ├── #quick-selector
│   │   ├── #level-1 (Basic Tracking)
│   │   ├── #level-2 (Standard Tracking) ✅ Recommended
│   │   ├── #level-3 (Advanced Tracking)
│   │   ├── #quick-reference
│   │   └── #faq
│   └── Partner Transaction API
│       └── /docs/partner-transaction-api.md
│
├── /internal (Requires @meitre.com Google login)
│   ├── Bulk Reservation Import Guide
│   │   ├── Overview
│   │   ├── API Endpoint
│   │   ├── CSV Format
│   │   ├── Processing Details
│   │   ├── Best Practices
│   │   ├── Troubleshooting
│   │   └── Testing
│   └── Super Admin Transaction API
│       └── /docs/admin-transaction-api.md
│
└── /login (Authentication)
    └── Google OAuth for @meitre.com users
```

## Content Index

### Public Documentation

#### Agency Tracking Guide
| Section | Anchor | Description |
|---------|--------|-------------|
| Overview | `#overview` | Introduction and why no traditional confirmation page |
| Quick Selector | `#quick-selector` | Choose implementation level based on needs |
| Level 1: Basic | `#level-1` | 5-minute setup with Facebook Pixel or GA |
| Level 2: Standard | `#level-2` | GTM + GA4 + Facebook (recommended) |
| Level 3: Advanced | `#level-3` | Server-side, DataLayer, Enhanced Conversions |
| Quick Reference | `#quick-reference` | Virtual pageviews and configuration keys |
| FAQ | `#faq` | Common questions and troubleshooting |

#### Partner Transaction API
| Section | Description |
|---------|-------------|
| Overview | API purpose and use cases |
| Authentication | API key setup and security |
| Request/Response | Endpoint details and examples |
| Error Handling | Error codes and causes |
| Code Examples | Python and JavaScript samples |

### Internal Documentation

#### Bulk Reservation Import
| Section | Description |
|---------|-------------|
| Overview | Purpose and typical use cases |
| API Endpoint | POST endpoint with JWT auth |
| CSV Format | Required and optional columns |
| Processing | How reservations are created |
| Best Practices | Tips for successful imports |
| Troubleshooting | Common errors and solutions |
| Testing | Local testing scripts |

#### Super Admin Transaction API
| Section | Description |
|---------|-------------|
| Overview | Multi-tenant access for internal systems |
| Authentication | Global API key configuration |
| Security | Critical security requirements |
| Request/Response | Endpoint with restaurant_id parameter |
| Usage Examples | Batch processing and aggregation scripts |

## Machine-Readable Files

| File | Purpose |
|------|---------|
| `/llms.txt` | AI agent entry point and navigation |
| `/docs/sitemap.md` | This file - complete content map |
| `/docs/agency-tracking-guide.md` | Full agency tracking documentation |
| `/docs/partner-transaction-api.md` | Partner transaction API documentation |
| `/docs/bulk-import-guide.md` | Bulk import documentation |
| `/docs/admin-transaction-api.md` | Super admin transaction API documentation |
| `/robots.txt` | Crawler instructions |

## Technical Stack

- Framework: React + Vite + TypeScript
- Styling: Tailwind CSS
- Auth: Supabase (Google OAuth, restricted to @meitre.com)
- i18n: English, Spanish, Portuguese

## Languages

All documentation is available in:
- English (en)
- Spanish (es) 
- Portuguese (pt)

Use `?lang=XX` parameter or the language selector in the UI.
