@extends('layouts.admin') @section('content')

Google Analytics Integration

Connect your website to Google Analytics 4

Back to Dashboard
Configuration
@if(session('success')) @endif
How to get credentials
  1. Go to the Google Cloud Console.
  2. Create a project and enable the Google Analytics Data API.
  3. Create a Service Account and download the JSON key file.
  4. Go to Google Analytics, go to Admin > Property Access Management.
  5. Add the service account email address as a user with Viewer role.
@csrf
You can find this in Google Analytics Admin > Property Settings.
Upload the JSON key file you downloaded from Google Cloud Console.
Status
@if($isConfigured)
@else
@endif
Integration Status
@if($isConfigured) Connected @else Not Configured @endif
@if($isConfigured)

Your website is successfully connected to Google Analytics API. You can now pull data directly into your dashboard.

@else

Please configure the Property ID and upload the Service Account credentials to enable the integration.

@endif
@endsection