PHPackages                             tda/laravel-google-analytics-admin - 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. [API Development](/categories/api)
4. /
5. tda/laravel-google-analytics-admin

ActiveLibrary[API Development](/categories/api)

tda/laravel-google-analytics-admin
==================================

Google Analytics Admin integration with oAuh2

v0.11(2y ago)0732[1 PRs](https://github.com/thedigitalarchitects/laravel-google-analytics-admin/pulls)MITPHPPHP ^8.0

Since Jun 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/thedigitalarchitects/laravel-google-analytics-admin)[ Packagist](https://packagist.org/packages/tda/laravel-google-analytics-admin)[ RSS](/packages/tda-laravel-google-analytics-admin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

laravel-google-analytics-admin
==============================

[](#laravel-google-analytics-admin)

Google Analytics Admin for Laravel

Based on:

V0.1

Requirements • PHP &gt;= 8.1

• Composer

• Laravel &gt;= 8.0

• Oauth2 Google Token

This package is using oAuth2 and it doens't authenticate with Google, we recommend to use Socialite to do this connection It is necessary this scope

```
https://www.googleapis.com/auth/analytics.edit
```

Installation

```
composer require tda/laravel-google-analytics-admin
```

Usage
-----

[](#usage)

Inside Laravel:

```
use Tda\LaravelGoogleAnalyticsAdmin\GoogleAnalyticsAdmin;
$analytics = new GoogleAnalyticsAdmin($token);
```

Features
--------

[](#features)

### Account

[](#account)

List accounts

```
$accounts = $analytics->listAccounts();
```

Get Account Account name e.g.: 'accounts/100'

```
$account = $analytics->getAccount($account);
```

Update Account Account name e.g.: 'accounts/100' Fields updatable: 'displayName', 'regionCode'

```
$params = ['displayName' => 'New Name', 'regionCode' => 'DE'];
$account = $analytics->updateAccount($account, $params);
```

Delete Account Account name e.g.: 'accounts/100'

```
$analytics->deleteAccount($account);
```

### Property

[](#property)

List properties Account name e.g.: 'accounts/100'

```
$properties = $analytics->listProperties($account);
```

Get Property Property name e.g.: 'properties/1000'

```
$analytics->getProperty($property);
```

Create Property Fields: { 'parent': string 'currencyCode': string 'displayName': string 'industryCategory': enum 'propertyType': enum 'timeZone': string 'serviceLevel': enum 'account': string }

```
$params = [
    'parent' => 'accounts/100',
    'currencyCode' => 'EUR',
    'displayName' => "GA 4 property",
    'industryCategory' => 'OTHER',
    "propertyType" => "PROPERTY_TYPE_ORDINARY",
    "timeZone" => "Europe/Berlin",
    'account' => 'accounts/100',
];
$property = $analytics->createProperty($params);
```

To get all Propreties enum

```
$enums = $analytics->getPropertiesResource();
```

Update Property Property name e.g.: 'properties/1000' Fields updatable: 'displayName', 'industryCategory', 'timeZone', 'currencyCode'

```
$params = [
    'displayName' => 'Update GA 4 property',
    'industryCategory' => 'TECHNOLOGY',
    'timeZone' => 'America/New_York',
    'currencyCode' => 'USD'
];
$property = $analytics->updateProperty($property, $params);
```

Delete Property Account name e.g.: 'property/1000'

```
$analytics->deleteProperty(property);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

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 ~1 days

Total

2

Last Release

1060d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ae273774a20c2eefc3335bbcdb95f7df8e7f6d76019b102f0303eaa619e07fc?d=identicon)[thedigitalarchitects](/maintainers/thedigitalarchitects)

---

Top Contributors

[![davileichs](https://avatars.githubusercontent.com/u/7110375?v=4)](https://github.com/davileichs "davileichs (13 commits)")

---

Tags

laraveltdaanalyitcs admingoogle analyitcs

### Embed Badge

![Health badge](/badges/tda-laravel-google-analytics-admin/health.svg)

```
[![Health](https://phpackages.com/badges/tda-laravel-google-analytics-admin/health.svg)](https://phpackages.com/packages/tda-laravel-google-analytics-admin)
```

###  Alternatives

[rakibdevs/openweather-laravel-api

Laravel package to connect https://openweathermap.org/ to get customized weather data for any location on the globe immediately

7648.2k](/packages/rakibdevs-openweather-laravel-api)

PHPackages © 2026

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