Strapi plugin logo for Google Analytics Dashboard

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.

thumbnail for Google Analytics Dashboard

📊 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

Install now

npm install strapi-google-analytics-dashboard

STATS

No GitHub star yet121 weekly downloads

Last updated

5 days ago

Strapi Version

5.16.1 and above

Author

github profile image for Victor Olayemi
Victor Olayemi

Useful links

Create your own plugin

Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.