# Installation Guide

## Requirements

Before installing Phynite Analytics, ensure your WordPress site meets these requirements:

- **WordPress**: 6.0 or higher
- **PHP**: 7.4 or higher
- **MySQL**: 5.7 or higher (or MariaDB 10.3+)

## Installation Methods

### Method 1: WordPress Admin (Recommended)

1. Download the plugin zip file from [GitHub Releases](https://github.com/phynite/phynite-analytics-wordpress/releases)
2. Log in to your WordPress admin dashboard
3. Navigate to **Plugins → Add New → Upload Plugin**
4. Click "Choose File" and select the downloaded zip file
5. Click "Install Now"
6. After installation, click "Activate Plugin"

### Method 2: Manual Upload via FTP

1. Download and extract the plugin zip file
2. Connect to your server via FTP/SFTP
3. Upload the `phynite-analytics` folder to `/wp-content/plugins/`
4. Log in to WordPress admin and go to **Plugins**
5. Find "Phynite Analytics for WordPress" and click "Activate"

### Method 3: WP-CLI

```bash
# Download from GitHub releases
wp plugin install https://github.com/phynite/phynite-analytics-wordpress/releases/latest/download/phynite-analytics.zip --activate
```

## Configuration

### Getting Your API Key

1. Log in to [Phynite Analytics](https://app.phyniteanalytics.com)
2. Navigate to **Settings → WordPress Integration**
3. Click "Generate API Key" or copy your existing key

### Entering Your API Key

1. In WordPress admin, go to **Settings → Phynite Analytics**
2. Paste your API key in the "API Key" field
3. Click "Save API Key"
4. The connection status should show "Connected"

### Initial Sync

After connecting, perform an initial sync to send your existing content:

1. On the Phynite Analytics settings page, find the "Sync" section
2. Click "Sync All Content"
3. Wait for the sync to complete (progress is shown in real-time)
4. Large sites may take several minutes to sync

## Verifying Installation

After installation and initial sync:

1. **Connection Status**: Should show "Connected" with a green checkmark
2. **Detected Plugins**: Shows which SEO and recipe plugins are detected
3. **Queue Status**: Shows pending and failed sync items (should be 0 after initial sync)

## Next Steps

- Read the [User Guide](user-guide.md) to learn how to use the plugin
- Check [Troubleshooting](troubleshooting.md) if you encounter any issues
