# Event Lead Capture Routes

**Last Updated:** 2026-01-12

## Overview

This document lists all configured event routes for the lead capture form system. Each event has a dedicated, clean URL that automatically populates event details.

## Configured Events

### Intergastra 2026

**Event Details:**

- **Name:** Intergastra 2026
- **Dates:** February 7-11, 2026
- **Location:** Messe Stuttgart, Stuttgart, Germany
- **Event ID:** `intergastra-2026`
- **Description:** Germany's leading trade fair for the hotel and gastronomy industry
- **Available Owners:** Barti, Daniela, David, Felix, Freddie, Kathrin, Lena, Michael, Quirin

**URLs:**

- Primary: `/events/intergastra-2026`
- Short: `/intergastra-2026` (redirects to primary)
- Alias: `/intergastra` (redirects to primary)

**Usage Examples:**

**With owner pre-selected (single tablet, single owner):**

```
https://www.ordio.com/events/intergastra-2026?owner=Felix
```

**Without owner (shared tablet, users select from dropdown):**

```
https://www.ordio.com/events/intergastra-2026
```

**Note:** Owner selection screen appears first. Team members select their name from a grid before the form displays. If owner is provided via URL parameter (`?owner=Felix`), the selection screen is skipped and form displays immediately.

### Internorga 2026

**Event Details:**

- **Name:** Internorga 2026
- **Dates:** March 13-17, 2026
- **Location:** Hamburg Messe und Congress, Hamburg, Germany
- **Event ID:** `internorga-2026`
- **Description:** Leading international trade fair for hotels, restaurants, bakery, and confectionery
- **Available Owners:** Barti, Constantin, Daniela, David, Felix, Freddie, Jakob, John, Lena, Michelle, Muhammed, Quirin

**URLs:**

- Primary: `/events/internorga-2026`
- Short: `/internorga-2026` (redirects to primary)
- Alias: `/internorga` (redirects to primary)

**Usage Examples:**

**With owner pre-selected (single tablet, single owner):**

```
https://www.ordio.com/events/internorga-2026?owner=Michael
```

**Without owner (shared tablet, users select from dropdown):**

```
https://www.ordio.com/events/internorga-2026
```

**Note:** Owner selection screen appears first. Team members select their name from a grid before the form displays. If owner is provided via URL parameter (`?owner=Felix`), the selection screen is skipped and form displays immediately.

## Adding New Events

To add a new event route, add the following to `.htaccess`:

```apache
# Event Lead Capture Pages - [Event Name] [Year]
RewriteRule ^events/[event-slug]\/?$ v2/pages/event-lead-capture.php?event=[Event%20Name]&event_id=[event-id]&date=[date-range]&location=[Location] [L,QSA]
RewriteRule ^[event-slug]\/?$ events/[event-slug] [R=301,L]
```

**Parameters:**

- `event`: Event name (URL encoded)
- `event_id`: Unique identifier for tracking (used to determine owner list)
- `date`: Date range (URL encoded, German format)
- `location`: Venue location (URL encoded)
- `owner`: Optional - Owner name (pre-fills dropdown, must be in event's owner list)

**Important:** After adding the `.htaccess` rule, you must also add the event's owner list to both `v2/components/event-form.php` and `v2/components/owner-selection-screen.php` in the `$eventOwners` array.

**Example:**

1. Add `.htaccess` rule:

```apache
# Event Lead Capture Pages - Example Event 2026
RewriteRule ^events/example-2026\/?$ v2/pages/event-lead-capture.php?event=Example%20Event%202026&event_id=example-2026&date=1-5%20Juni%202026&location=Messe%20Berlin [L,QSA]
RewriteRule ^example-2026\/?$ events/example-2026 [R=301,L]
```

2. Add owner list in both `v2/components/event-form.php` and `v2/components/owner-selection-screen.php`:

```php
$eventOwners = [
    'intergastra-2026' => [...],
    'internorga-2026' => [...],
    'example-2026' => [
        'Owner1',
        'Owner2',
        'Owner3'
    ]
];
```

## URL Structure

All event routes follow this pattern:

- **Primary:** `/events/[event-slug]`
- **Short:** `/[event-slug]` (301 redirect to primary)
- **Alias:** `/[event-name]` (301 redirect to primary, if applicable)

## Query Parameters

Additional query parameters can be added to any event URL:

- `owner`: Owner name (skips selection screen, e.g., `?owner=Felix`)
  - **Note:** Owner must be in the event's owner list. If valid, selection screen is skipped and form displays immediately. If invalid, selection screen appears normally.
- `utm_source`: UTM source tracking
- `utm_campaign`: UTM campaign tracking
- `utm_medium`: UTM medium tracking

**Example:**

```
/events/intergastra-2026?owner=Felix&utm_source=email&utm_campaign=intergastra-2026
```

## Owner Lists

Each event has its own specific owner list that appears in the selection grid. The grid automatically shows only the owners assigned to that event.

**Intergastra 2026 Owners (9):**

- Barti
- Daniela
- David
- Felix
- Freddie
- Kathrin
- Lena
- Michael
- Quirin

**Internorga 2026 Owners (12):**

- Barti
- Constantin
- Daniela
- David
- Felix
- Freddie
- Jakob
- John
- Lena
- Michelle
- Muhammed
- Quirin

**Note:**

- If an event ID is not recognized, the selection screen will show all owners from both events combined (alphabetically sorted).
- Owner names are case-insensitive in URL parameters (e.g., `?owner=felix` works).
- When adding a new event, update the `$eventOwners` array in both `v2/components/event-form.php` and `v2/components/owner-selection-screen.php`.
- Selected owner persists across page refreshes via localStorage (key: `event_lead_owner_[eventId]`).

## Related Documentation

- [Event Form Implementation Guide](EVENT_FORM_IMPLEMENTATION.md) - Complete implementation guide
- [Form Configuration Reference](FORM_CONFIGURATION_REFERENCE.md) - Form field mappings
