PHPackages                             soda-framework/analytics - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. soda-framework/analytics

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

soda-framework/analytics
========================

Soda Framework: Analytics

0.1.5(8y ago)082MITPHPPHP &gt;=5.5.9

Since Jul 26Pushed 8y ago2 watchersCompare

[ Source](https://github.com/soda-framework/analytics)[ Packagist](https://packagist.org/packages/soda-framework/analytics)[ RSS](/packages/soda-framework-analytics/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (3)Versions (8)Used By (0)

Soda Analytics
==============

[](#soda-analytics)

A sweet integration with Google Analytics into the Soda Framework

Installation
------------

[](#installation)

1. Firstly follow the instructions to install Soda CMS at:
2. Install Soda Analytics with composer

```
#!bash
composer require soda-framework/analytics

```

3. Add `Soda\Analytics\Providers\AnalyticsServiceProvider::class`
4. Run `php artisan vendor:publish`
5. Run `php artisan migrate`
6. Modify `config/soda/analytics.php` according to your needs:

- `apis` - Google Console API's Soda Analytics requires
- `service-account-name` - The name of the Service Account created for [Using OAuth 2.0 for Server to Server Applications](https://developers.google.com/identity/protocols/OAuth2ServiceAccount)
- `scheduler` - available cron job intervals for the Analytics scheduler

7. Add the following Laravel Blade code to your `` to initialize Google Analytics:

```
@include('soda-analytics::analytics')

```

Configuration
-------------

[](#configuration)

- Log into the CMS
- Go to Analytics &gt; Configure
- Complete all the steps, in order, to enable and create the relevant apis and access keys.
- You're ready. Start using Analytics &gt; Audience, Events, Schedules.

Usage
-----

[](#usage)

### Sending Events

[](#sending-events)

Send events as normal with Google Analytics:

```
ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);

```

Or use our helper function:

```
send_event([eventCategory], [eventAction], [eventLabel] (optional), [eventValue] (optional));

```

For best results, try to use all the parameters.

### Analyzing Events

[](#analyzing-events)

- Log into the CMS
- Go to Analytics &gt; Events

### Analyzing Audience

[](#analyzing-audience)

- Log into the CMS
- Go to Analytics &gt; Audience

### Creating Schedules

[](#creating-schedules)

- Log into the CMS
- Go to Analytics &gt; Schedules
- Choose your desired schedule frequency (the same frequency is used for all schedules)
- Enter the displayed `cron` command onto your server (using the `crontab -e` command)
- Create a new schedule
- Choose the type. Event will send event data, Audience, audience data, Events and Audience will send both.
- Enter at least one email to send the report to.
- Click save.
- You can test your schedule by clicking `Run Schedule`

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

6

Last Release

3213d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e5c6a191b1ac6657212caf234f305b0e39246ef2102916bf0d2dc0a61242609?d=identicon)[Chaddles23](/maintainers/Chaddles23)

---

Top Contributors

[![Chaddles23](https://avatars.githubusercontent.com/u/9097402?v=4)](https://github.com/Chaddles23 "Chaddles23 (3 commits)")

---

Tags

laravelgoogleanalyticsSODA

### Embed Badge

![Health badge](/badges/soda-framework-analytics/health.svg)

```
[![Health](https://phpackages.com/badges/soda-framework-analytics/health.svg)](https://phpackages.com/packages/soda-framework-analytics)
```

###  Alternatives

[spatie/laravel-analytics

A Laravel package to retrieve Google Analytics data.

3.2k5.7M57](/packages/spatie-laravel-analytics)[farhanwazir/laravelgooglemaps

Laravel Google Map package for 5.x. You can use all google map features in laravel.

15542.0k2](/packages/farhanwazir-laravelgooglemaps)[cornford/googlitics

An easy way to integrate Google Analytics with Laravel.

3310.2k](/packages/cornford-googlitics)[panakour/analytics

Get whatever data you want from google analytics.

267.6k](/packages/panakour-analytics)[tomatophp/filament-seo

Manage and generate SEO tags and integrate your website with Google SEO services

112.6k1](/packages/tomatophp-filament-seo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
