import os

def google_analytics(request):
    """
    Adds Google Analytics tracking ID to the context if available in environment variables.
    """
    return {
        'ga_tracking_id': os.environ.get('GA_TRACKING_ID', ''),
        'debug': os.environ.get('DEBUG', 'True').lower() == 'true'
    }
