#!/bin/bash
# GTM Audit Tool Setup Script

echo "🔧 Setting up GTM Audit Tool..."

# Check Python
if ! command -v python3 &> /dev/null; then
    echo "❌ Python 3 is required but not installed."
    exit 1
fi

echo "✅ Python 3 found"

# Install dependencies
echo "📦 Installing Python dependencies..."
pip install -r requirements.txt

# Install Playwright browsers
echo "🌐 Installing Playwright browsers..."
playwright install chromium

echo ""
echo "✅ Setup complete!"
echo ""
echo "Usage:"
echo "  python gtm_audit.py --url 'https://example.com' --journey full"
echo ""
echo "For Claude Code:"
echo "  claude"
echo "  > Run a GTM audit on https://example.com"
