2017 © Pedro Peláez
 

library nette-analytics

Analytics extension for Nette Framework

image

geniv/nette-analytics

Analytics extension for Nette Framework

  • Thursday, May 17, 2018
  • by geniv
  • Repository
  • 1 Watchers
  • 0 Stars
  • 311 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 2 % Grown

The README.md

Analytics

Installation

$ composer require geniv/nette-analytics

or, (*1)

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

require:, (*2)

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

Analytics driver:

  • GA: https://analytics.google.com
    • https://developers.google.com/analytics/
  • GTM: https://tagmanager.google.com
    • https://developers.google.com/tag-manager/
  • Matomo: https://matomo.org/
    • https://developer.matomo.org/guides/tracking-javascript-guide

Include in application

neon configure:, (*3)

# 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:, (*4)

extensions:
    analytics: Analytics\Bridges\Nette\Extension

base presenters:, (*5)

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:, (*6)

{*high in the <head>*}
{control ga}

usage GTM:, (*7)

{*high in the <head>*}
{control gtm}

{*after the opening <body> tag*}
{control gtm:body}

usage Matomo:, (*8)

{*high in the <head>*}
{control matomo}

{*after the opening <body> tag*}
{control matomo:body}

The Versions

17/05 2018

dev-master

9999999-dev

Analytics extension for Nette Framework

  Sources   Download

MIT GPL-3.0

The Requires

 

by Radek Frystak

analytics google nette gtm ga geniv matomo

17/05 2018

v1.1.1

1.1.1.0

Analytics extension for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

analytics google nette gtm ga geniv matomo

17/05 2018

dev-develop

dev-develop

Analytics extension for Nette Framework

  Sources   Download

MIT GPL-3.0

The Requires

 

by Radek Frystak

analytics google nette gtm ga geniv matomo

17/05 2018

v1.1.0

1.1.0.0

Analytics extension for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

analytics google nette gtm ga geniv matomo

19/01 2018

v1.0.7

1.0.7.0

Google analytics extension for Nette Framework

  Sources   Download

MIT GPL-3.0

The Requires

 

by Radek Frystak

analytics google nette gtm geniv

06/08 2017

v1.0.6

1.0.6.0

Google analytics extension for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

analytics google nette gtm geniv

15/07 2017

v1.0.5

1.0.5.0

Google analytics extension for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

analytics google nette gtm geniv

16/06 2017

v1.0.4

1.0.4.0

Google analytics extension for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

analytics google nette geniv

28/05 2017

v1.0.3

1.0.3.0

Google analytics extension for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

analytics google nette geniv

28/05 2017

v1.0.2

1.0.2.0

Google analytics extension for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

analytics google nette geniv

28/05 2017

v1.0.1

1.0.1.0

Google analytics extension for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

analytics google nette geniv

28/05 2017

v1.0.0

1.0.0.0

Google analytics extension for Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

by Radek Frystak

analytics google nette geniv