26 lines
1.1 KiB
Bash
26 lines
1.1 KiB
Bash
# Google Analytics API Configuration
|
|
# Copy this file to .env and fill in your actual values
|
|
|
|
# Your Google Analytics 4 Property ID
|
|
# Find this in GA4: Admin > Property Settings > Property ID
|
|
# Format: 123456789 (numeric only, not the "G-" measurement ID)
|
|
GOOGLE_ANALYTICS_PROPERTY_ID=your-property-id-here
|
|
|
|
# Path to your Google Cloud service account JSON key file
|
|
# Create a service account in Google Cloud Console and download the JSON key
|
|
# Store this file OUTSIDE your git repository for security
|
|
# Example: /home/user/.config/google-analytics/service-account-key.json
|
|
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json
|
|
|
|
# How to set up:
|
|
# 1. Go to Google Cloud Console (console.cloud.google.com)
|
|
# 2. Create or select a project
|
|
# 3. Enable the Google Analytics Data API
|
|
# 4. Create a service account (IAM & Admin > Service Accounts)
|
|
# 5. Download the JSON key file
|
|
# 6. Go to GA4 Admin > Property Access Management
|
|
# 7. Add the service account email with "Viewer" role
|
|
# 8. Update the values above with your property ID and key file path
|
|
# 9. Rename this file to .env
|
|
# 10. NEVER commit .env or the JSON key file to version control!
|