From 4584629d6fc2691e85134a08e421741481f5846d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 07:14:08 +0000 Subject: [PATCH 1/3] Initial plan From dbbe320cd66bef3a2098a3728ccce018027b54f8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 07:17:58 +0000 Subject: [PATCH 2/3] Add Google Analytics integration to HTML files Co-authored-by: Lalien <5607082+Lalien@users.noreply.github.com> --- .env.example | 4 ++++ README.md | 12 ++++++++++++ src/index.html | 10 ++++++++++ src/login.html | 11 +++++++++++ 4 files changed, 37 insertions(+) diff --git a/.env.example b/.env.example index 48bbdf1..565f0c4 100644 --- a/.env.example +++ b/.env.example @@ -11,3 +11,7 @@ GOOGLE_CALLBACK_URL=http://localhost:3000/auth/google/callback GITHUB_CLIENT_ID=your-github-client-id GITHUB_CLIENT_SECRET=your-github-client-secret GITHUB_CALLBACK_URL=http://localhost:3000/auth/github/callback + +# Google Analytics Configuration (optional) +# Get your tracking ID from https://analytics.google.com +GA_TRACKING_ID= diff --git a/README.md b/README.md index c75f6a4..039475b 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,18 @@ Edit `src/App.vue` to customize the appearance and functionality of the frontend You can enable or disable OAuth providers by setting or removing their credentials in the `.env` file. At least one provider must be configured for authentication to work. +### Set Up Google Analytics (Optional) + +To track user analytics with Google Analytics: + +1. Create a Google Analytics account at [analytics.google.com](https://analytics.google.com) +2. Create a new property for your application +3. Get your Measurement ID (format: `G-XXXXXXXXXX`) +4. Replace `G-XXXXXXXXXX` in both `src/index.html` and `src/login.html` with your actual tracking ID +5. Rebuild the frontend with `npm run build` + +The Google Analytics tracking code is located in the `
` section of both HTML files and will track page views and user interactions automatically. + ### Add More Features - Add more OAuth providers (Twitter, Facebook, etc.) diff --git a/src/index.html b/src/index.html index ece47e0..3dbc015 100644 --- a/src/index.html +++ b/src/index.html @@ -4,6 +4,16 @@