spatie/laravel-analytics

A Laravel package to retrieve pageviews and other data from Google Analytics

View on GitHub ↗Jump to charts ↓

Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 16 minutes ago
Added to GitGenius on September 21st, 2026
Created on March 12th, 2015
Open Issues & Pull Requests: 1 (+0)
GitHub issues: Disabled - open counts may still include pull requests.
Number of forks: 472
Total Stargazers: 3,240 (+0)
Total Subscribers: 84 (+0)

Repository Insights (GitGenius)

Most active contributors

Sign in to see contributor activity.
Sign in

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

GitHub issues are disabled for this repository, so issue analytics and the issue explorer are not available.

Detailed Description

Laravel-analytics is a Laravel package that retrieves pageviews and other data from Google Analytics.

The package solves the problem of integrating Google Analytics data into Laravel applications by providing a straightforward interface to query the Google Analytics Data API. It handles the authentication flow with Google's service account credentials and abstracts away the complexity of direct API communication, returning results as Laravel Collection objects that developers can work with using familiar Laravel patterns.

The package suits Laravel applications that need to display analytics metrics within their admin panels, dashboards, or reporting features. It works well for projects requiring programmatic access to pageview counts, user statistics, and other analytics dimensions without building custom API integration code. Developers should be aware that the package requires setting up Google service account credentials and granting the service account email address access to their Analytics property through Google's console.

The project maintains active engagement with its codebase through regular updates and refinements. Development activity shows consistent attention to keeping the package compatible with evolving Google Analytics APIs and Laravel framework versions. The maintainers demonstrate responsiveness to the needs of the Laravel community by providing clear documentation and setup guidance for obtaining and configuring Google credentials.