API reference
This is an automatically generated documentation for Analytics.
Namespaces
### \
Hooks
| Hook | Description |
|---|---|
hook_analytics_service_access() |
Controls access to an analytics service, including whether it tracks. |
hook_analytics_SERVICE_ID_data_alter() |
Alters the data an analytics service pushes to its data layer. |
hook_analytics_PLUGIN_ID_data_alter() |
Alters the data of every analytics service that uses a plugin. |
\Drupal\analytics
Classes
| Class | Description |
|---|---|
AnalyticsServiceAccessControlHandler |
Defines the access control handler for analytics services. |
AnalyticsServiceListBuilder |
Provides a listing of analytics instances. |
AnalyticsServiceManager |
Provides a plugin manager for analytics items. |
\Drupal\analytics\Attribute
Classes
| Class | Description |
|---|---|
AnalyticsService |
Defines an analytics service plugin attribute. |
\Drupal\analytics\Controller
Classes
| Class | Description |
|---|---|
AnalyticsController |
Returns responses for Views UI routes. |
\Drupal\analytics\Entity
Classes
| Class | Description |
|---|---|
AnalyticsService |
Defines the analytics instance entity. |
Interfaces
| Interface | Description |
|---|---|
AnalyticsServiceInterface |
Provides an interface defining a analytics service configuration entity. |
\Drupal\analytics\Form
Classes
| Class | Description |
|---|---|
AnalyticsServiceForm |
Form handler for adding and editing analytics services. |
AnalyticsSettingsForm |
Settings form for the Analytics module. |
\Drupal\analytics\Hook
Classes
| Class | Description |
|---|---|
AnalyticsHooks |
Hook implementations for analytics. |
\Drupal\analytics\Plugin
Classes
| Class | Description |
|---|---|
ServicePluginBase |
Defines a base implementation for analytics service plugins will extend. |
ServicePluginCollection |
Holds the analytics service plugin of an analytics service config entity. |
Traits
| Trait | Description |
|---|---|
ServiceDataTrait |
Provides alterable data for analytics service plugins. |
Interfaces
| Interface | Description |
|---|---|
ServicePluginInterface |
Defines an interface for analytics service plugins. |
\Drupal\analytics\Plugin\AnalyticsService
Classes
| Class | Description |
|---|---|
Broken |
Fallback for analytics services whose plugin no longer exists. |
GoatCounter |
GoatCounter analytics service plugin. |
GoogleTagManager |
Google Tag Manager analytics service plugin. |
Matomo |
Matomo (formerly Piwik) analytics service plugin. |
\Drupal\analytics\Render
Classes
| Class | Description |
|---|---|
AnalyticsJsMarkup |
Defines an object that passes safe strings through the render system. |