PHPackages                             davefu/google-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. davefu/google-analytics

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

davefu/google-analytics
=======================

Component for Google Analytics code

v2.0(11y ago)091BSD-3-ClausePHP

Since Sep 19Pushed 11y ago1 watchersCompare

[ Source](https://github.com/davefu/GoogleAnalytics)[ Packagist](https://packagist.org/packages/davefu/google-analytics)[ RSS](/packages/davefu-google-analytics/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

davefu\\GoogleAnalytics
=======================

[](#davefugoogleanalytics)

This is Google Analytics component for [Nette Framework](http://nette.org/).

Instalation
-----------

[](#instalation)

Include extension in config.neon and add Google Analytics key (if key is not defined, GA script will not be printed):

```
analytics:
	key: "UA-XXXXXXXX-X"

extensions:
	analytics: davefu\GoogleAnalytics\DI\AnalyticsExtension

```

Usage
-----

[](#usage)

You have to insert component factory to BasePresenter and use the component in @layout.latte:

```
/** @var \davefu\GoogleAnalytics\Components\GoogleAnalyticsFactory\GoogleAnalyticsFactory @inject */
protected $googleAnalyticsFactory;

public function createComponentAnalytics() {
	return $this->googleAnalyticsFactory->create();
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

4255d ago

Major Versions

v1.0 → v2.02014-09-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2d622a6587e2c623f09bcaaf7d470b05442781a33f808f6845aa051b89b39c0?d=identicon)[davefu](/maintainers/davefu)

---

Top Contributors

[![davefu](https://avatars.githubusercontent.com/u/2168632?v=4)](https://github.com/davefu "davefu (9 commits)")

---

Tags

nettegoogle-analytics

### Embed Badge

![Health badge](/badges/davefu-google-analytics/health.svg)

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

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.2k64.2M576](/packages/nette-php-generator)[nette/robot-loader

🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.

89152.7M321](/packages/nette-robot-loader)[vojtech-dobes/nette-forms-gpspicker

Google Maps based picker of coordinates for Nette Framework.

2456.6k](/packages/vojtech-dobes-nette-forms-gpspicker)

PHPackages © 2026

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