Commit eb6da494 authored by Avris's avatar Avris

readme

parent 13d7253d
## Micrus Google Analytics Service ##
# Micrus Google Analytics Service ##
This is a module for [Micrus framework](https://micrus.avris.it)
that adds a really basic helper for Google Analytics.
### Installation
## Installation
In your `App\App:registerModules` register the module:
Run:
yield new \Avris\Micrus\GoogleAnalytics\GoogleAnalyticsModule;
composer require avris/micrus-ga
then run:
Then register the module in your `App\App:registerModules`:
yield new \Avris\Micrus\GoogleAnalytics\DoctrineModule;
composer require avris/micrus-ga
You will be asked for a GA Tracking-ID and it will be saved in the `.env` file.
If you don't provide any (for instance in a testing environment),
this service will not fail, it will just do nothing.
### Usage ###
## Usage ###
To include a tracking code in your template, just write before the closing `</body>`:
......@@ -36,7 +37,7 @@ For performance, that data will be sent during request termination
(so in the background, after the response has already been sent).
You can force the service to send the data right away with `$ga->collect($request, false)`.
### Copyright
## Copyright
* **Author:** Andre Prusinowski [(Avris.it)](https://avris.it)
* **Licence:** [MIT](https://mit.avris.it)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment