Google/Firebase Add-on implementation
## Configuration
| Field Name | Description | Default Value |
|------------------------------|----------------------------------------------------|------------------|
| isAnalyticsCollectionEnabled | Indicates whether analytics collection is enabled. | true |
| sessionTimeoutDuration | Duration of the session timeout in milliseconds. | null |
| defaultEventParameters | Default event parameters for tracking events. | null |
Note: The default values mentioned above can be overridden by providing custom values during initialization.
## Create Add-on
1. Download Google analytics add-on:
```gradle
implementation 'io.github.aminekarimii:analytiks-googleanalytics:1.0.0'
```
2. Create your own client
``` kotlin
val googleAnalytics = GoogleAnalyticsClient(
isAnalyticsCollectionEnabled = true,
sessionTimeoutDuration = 300L,
defaultEventParameters = null
)
```
### Check the official documentation for more details:
➡️ [Official firebase analytics](https://firebase.google.com/docs/analytics/get-started?platform=android)