strapi-google-analytics-dashboard

0.0.2 • Public • Published

📊 strapi-google-analytics-dashboard

A plug-and-play Google Analytics 4 dashboard for Strapi 5.x. No code required — just install, configure your credentials, and instantly start tracking GA metrics directly in your admin panel.

npm version npm downloads license

Google Analytics Dashboard UI


🚀 Features

  • 📈 Overview of key metrics (Active Users, Sessions, Page Views, Bounce Rate, etc)
  • 🌍 Users by Country & Device
  • 🔗 Top Pageviews
  • 🧭 Sessions by Source
  • 📆 Date range filters (Last 7/30/90/180/365 days)
  • 🎯 Fully responsive and built with Strapi Design System

⚙️ Installation

npm install strapi-google-analytics-dashboard

or

yarn add strapi-google-analytics-dashboard

Then restart your Strapi server.

npx strapi develop

or

npm run develop

or

yarn develop

🧩 Usage

  1. Go to Settings > Google Analytics inside your Strapi Admin panel.
  2. Paste the following:
    • GA Property ID (e.g., 342132078)
    • GA Measurement ID (optional)
    • GA Service Account JSON – the service account credentials JSON from Google Cloud.

📌 NOTE: You must have already set up Google Analytics 4 on your frontend app (e.g., with the gtag.js snippet) and collected some traffic.

Google Analytics Dashboard UI


🔑 How to Get Google Analytics Credentials

  1. Go to Google Cloud Console.
  2. Create a new project or select an existing one.
  3. Enable the Google Analytics Data API.
  4. Go to APIs & Services > Credentials and:
    • Create a Service Account.
    • Generate a JSON key for that account (you’ll paste this in the plugin settings).
  5. Go to your GA4 Admin panel and under Property > Account Settings, add the service account email as a Viewer.

🙌 Contributions

PRs and suggestions welcome! Please open issues for feature requests or bugs.


📄 License

MIT License

Package Sidebar

Install

npm i strapi-google-analytics-dashboard

Weekly Downloads

17

Version

0.0.2

License

MIT

Unpacked Size

314 kB

Total Files

38

Last publish

Collaborators

  • testimonyismine