PHPackages                             nattreid/google-api - 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. nattreid/google-api

ActiveLibrary

nattreid/google-api
===================

Google Api for Nette Framework

2.2.0(2y ago)13591MITPHPPHP &gt;= 7.1

Since Feb 16Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (6)Versions (30)Used By (1)

Google Api pro Nette Framework
==============================

[](#google-api-pro-nette-framework)

Nastavení v **config.neon**

```
extensions:
    googleApi: NAtrreid\GoogleApi\DI\GoogleApiExtension

googleApi:
    gaClientId: 'UA-XXXXXXXX-X'
    webMasterKey: 'xxx1x1xxxx1xx1xx12XXXX123x1x1234xx1x12x123x'
    merchantKey: 'xxx1x1xxxx1xx1xx12XXXX123x1x1234xx1x12x123x'
    adWordsConversionId: '1234567890'
    adWordsConversionLabel: 'xxx1XXx1xXXX123X1xX'
    anonymizeIp: false
```

Použití

```
/** @var NAttreid\GoogleApi\IGoogleApiFactory @inject */
public $googleApiFactory;

protected function createComponentGoogleApi() {
    return $this->googleApiFactory->create();
}

public function someRender() {
    $this['googleApi']->pageView('/product','Product');   // pageView

    // adwords
    $this['googleApi']->remarketingEcomm('product', 3.5, 123);   // remarketing
    $this['googleApi']->conversion(3.5, 'CZK');                  // konverze

    // eCommerce
    $transaction = new Transaction;
    $transaction->id = 12345;
    $transaction->value = 5.5;
    $transaction->shipping = 1;

    $item = new Item;
    $item->id = 1;
    $item->name = 'Item';
    $item->sku = 'code';
    $item->category = 'category';
    $item->price = 5.5;
    $item->quantity = 1;
    $transaction->addItem($item);

    $this['googleApi']->transaction($transaction);
}
```

v @layout.latte

```

    {control googleApi}

    {control googleApi:event}

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

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

Recently: every ~486 days

Total

29

Last Release

982d ago

Major Versions

1.2.5 → 2.0.02018-03-21

PHP version history (3 changes)1.0.0PHP &gt;= 5.6

1.0.8PHP &gt;= 7.0

1.1.0PHP &gt;= 7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a388aeb3f00b15a3af1c1a5d3a2107c94af1730c6043dd30ce32a63f95ea290?d=identicon)[attreid](/maintainers/attreid)

---

Top Contributors

[![attreid](https://avatars.githubusercontent.com/u/13151440?v=4)](https://github.com/attreid "attreid (1 commits)")

### Embed Badge

![Health badge](/badges/nattreid-google-api/health.svg)

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

###  Alternatives

[ublaboo/datagrid

DataGrid for Nette Framework: filtering, sorting, pagination, tree view, table view, translator, etc

2971.9M23](/packages/ublaboo-datagrid)[contributte/image-storage

Image storage for Nette framework

28749.3k1](/packages/contributte-image-storage)[contributte/forms-bootstrap

Nette extension for Bootstrap forms

211.1M4](/packages/contributte-forms-bootstrap)[contributte/api-router

RESTful Router for your Apis in Nette Framework - created either directly or via attributes

20802.8k3](/packages/contributte-api-router)[contributte/newrelic

NewRelic PHP agent integration for Nette Framework

19822.4k](/packages/contributte-newrelic)[contributte/mailing

Sending emails with pleasure and prepared templates.

16961.0k2](/packages/contributte-mailing)

PHPackages © 2026

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