<?php

return [
    'sessions' => 'Sessions',
    'visitors' => 'Visitors',
    'pageviews' => 'Pageviews',
    'bounce_rate' => 'Bounce Rate',
    'page_session' => 'Pages/Session',
    'avg_duration' => 'Avg. Duration',
    'percent_new_session' => 'Percent new session',
    'new_users' => 'New visitors',
    'visits' => 'visits',
    'views' => 'views',
    'start_date_can_not_before_end_date' => 'Start date :start_date cannot be after end date :end_date',
    'not_set_up' => 'Widget is not set up',
    'settings' => [
        'title' => 'Google Analytics',
        'description' => 'Config Credentials for Google Analytics',
        'analytics_property_id' => 'Property ID for GA4',
        'analytics_property_id_description' => 'Google Analytics Property ID (GA4)',
        'json_credential' => 'Service Account Credentials',
        'json_credential_description' => 'Service Account Credentials',
        'credential_is_not_valid' => 'Analytics credentials is not valid. Refer to the document here: :url',
        'property_id_is_invalid' => 'Property ID is invalid. Check this: https://developers.google.com/analytics/devguides/reporting/data/v1/property-id',
        'wrong_configuration' => 'To view analytics, you need to get a Google Analytics Client ID and add it to your settings.<br />You also need JSON credentials.<br />Refer to the document here: :url',
        'google_analytics_information' => 'To add Google Analytics Tag ID to track your website traffic, visit Admin → Settings → Website Tracking.',
        'enable_dashboard_widgets' => 'Enable Dashboard Widgets',

        'status' => 'Status & Testing',
        'property_id_status' => 'Property ID',
        'credentials_status' => 'Credentials',
        'dashboard_widgets_status' => 'Dashboard Widgets',
        'configured' => 'Configured',
        'not_configured' => 'Not Configured',
        'enabled' => 'Enabled',
        'disabled' => 'Disabled',

        'test_connection' => 'Test Connection',
        'testing' => 'Testing...',
        'connection_success' => 'Connection successful! Credentials are valid.',
        'connection_failed' => 'Connection failed',
        'credentials_or_property_missing' => 'Property ID or credentials are not configured.',
        'permission_denied' => 'Permission denied. Make sure the service account has access to the Analytics property.',
        'authentication_failed' => 'Authentication failed. Check your service account credentials.',
        'property_not_found' => 'Property not found. Verify your Property ID is correct.',
        'api_not_enabled' => 'Google Analytics Data API is not enabled. Enable it in Google Cloud Console.',

        'current_property_id' => 'Current Property ID',
        'service_account_email' => 'Service Account Email',

        'setup_instructions' => 'Setup Instructions',
        'setup_steps' => 'Follow these steps to configure Google Analytics',
        'step_1' => 'Go to Google Cloud Console and create a service account',
        'step_2' => 'Download the JSON key file for the service account',
        'step_3' => 'Enable the Google Analytics Data API in your project',
        'step_4' => 'Go to Google Analytics and add the service account email as a Viewer',
        'step_5' => 'Enter your GA4 Property ID and paste the JSON credentials above',

        'open_cloud_console' => 'Google Cloud Console',
        'open_analytics' => 'Google Analytics',
        'enable_analytics_api' => 'Enable Analytics API',
        'api_info' => 'The Analytics Data API is used for dashboard widgets',
    ],
    'widget_analytics_page' => 'Most Visited Pages',
    'widget_analytics_browser' => 'Top Browsers',
    'widget_analytics_referrer' => 'Top Referrers',
    'widget_analytics_general' => 'Site Analytics',
    'missing_library_warning' => 'Analytics plugin error: Missing third-party libraries. Please run "composer update" to install them.',
    'browser' => 'Browser',
    'url' => 'URL',
    'credential_invalid' => 'This credential is invalid Google Analytics credentials.',
    'file_not_valid_json' => 'This file is not a valid JSON file.',
    'no_results_found' => 'No results found',
    'upload_service_account_json' => 'Upload Service Account JSON File',
];
