PHPackages                             geniv/nette-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. [Framework](/categories/framework)
4. /
5. geniv/nette-analytics

ActiveLibrary[Framework](/categories/framework)

geniv/nette-analytics
=====================

Analytics extension for Nette Framework

v1.2.1(7y ago)0406MITPHPPHP &gt;=7.0

Since May 28Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (14)Used By (0)

Analytics
=========

[](#analytics)

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

[](#installation)

```
$ composer require geniv/nette-analytics
```

or

```
"geniv/nette-analytics": "^1.0"
```

require:

```
"php": ">=7.0",
"nette/nette": ">=2.4",
"geniv/nette-general-form": ">=1.0"
```

Analytics driver:
-----------------

[](#analytics-driver)

- GA:
    -
- GTM:
    -
- Matomo:
    -

Include in application
----------------------

[](#include-in-application)

neon configure:

```
# analytics
analytics:
#   productionMode: true
    ga: 'UA-XXXXX-Y'
#   ga:
#       cs: 'UA-XXXXX-Y'
    gtm: 'GTM-XXXXXXX'
#   gtm:
#       cs: 'GTM-XXXXXXX'
    matomo:
        url: 'url.piwik.url'
        siteId: '123'
#    matomo:
#        cs:
#            url: 'url.piwik.url'
#            siteId: '123'
```

neon configure extension:

```
extensions:
    analytics: Analytics\Bridges\Nette\Extension
```

base presenters:

```
protected function createComponentGa(IGoogleGa $googleGa): IGoogleGa
{
    //$googleGa->setLocaleCode($this->locale);
    //$googleGa->setTemplatePath(__DIR__ . '/templates/googleGa.latte');
    return $googleGa;
}

protected function createComponentGtm(IGoogleTagManager $googleTagManager): IGoogleTagManager
{
    //$googleTagManager->setLocaleCode($this->locale);
    //$googleTagManager->setTemplatePath(__DIR__ . '/templates/googleTagManager.latte');
    return $googleTagManager;
}

protected function createComponentMatomo(IMatomo $matomo): IMatomo
{
    //$matomo->setLocaleCode($this->locale);
    //$matomo->setTemplatePath(__DIR__ . '/templates/matomo.latte');
    return $matomo;
}
```

usage GA:

```
{*high in the *}
{control ga}
```

usage GTM:

```
{*high in the *}
{control gtm}

{*after the opening  tag*}
{control gtm:body}
```

usage Matomo:

```
{*high in the *}
{control matomo}

{*after the opening  tag*}
{control matomo:body}
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

Recently: every ~117 days

Total

12

Last Release

2616d ago

PHP version history (3 changes)v1.0.0PHP &gt;=5.6.0

v1.1.0PHP &gt;=7.0.0

v1.2.0PHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

[![geniv](https://avatars.githubusercontent.com/u/563659?v=4)](https://github.com/geniv "geniv (42 commits)")

---

Tags

googlenettematomoanalyticsgtmgageniv

### Embed Badge

![Health badge](/badges/geniv-nette-analytics/health.svg)

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

PHPackages © 2026

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