class Pageview in Googalytics - Google Analytics 8
Class Pageview.
Hierarchy
- class \Drupal\ga\AnalyticsCommand\Generic implements DrupalSettingCommandsInterface uses DrupalSettingCommandsTrait
Expanded class hierarchy of Pageview
2 files declare their use of Pageview
- DefaultCommandSubscriber.php in src/
EventSubscriber/ DefaultCommandSubscriber.php - PageviewTest.php in tests/
src/ Unit/ AnalyticsCommand/ PageviewTest.php
File
- src/
AnalyticsCommand/ Pageview.php, line 8
Namespace
Drupal\ga\AnalyticsCommandView source
class Pageview extends Send {
/*
* Pageview event should come before other Send commands (e.g. event), but
* after most other commands (e.g. set dimension)
*/
const DEFAULT_PRIORITY = -5;
/**
* Create constructor.
*
* @param array $fields_object
* A map of values for the command's fieldsObject parameter.
* @param string $tracker_name
* The tracker name (optional).
* @param int $priority
* The command priority.
*/
public function __construct(array $fields_object = [], $tracker_name = NULL, $priority = self::DEFAULT_PRIORITY) {
parent::__construct('pageview', $fields_object, $tracker_name, $priority);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DrupalSettingCommandsTrait:: |
protected | property | Priority integer. | |
DrupalSettingCommandsTrait:: |
public | function | An integer value for sorting by priority. | |
Generic:: |
protected | property | The command name. | |
Generic:: |
protected | property | A map of values for the command's fieldsObject parameter. | |
Generic:: |
protected | property | The name of the tracker for this command. | |
Generic:: |
public | function | Get the command name. | |
Generic:: |
public | function | Get the map of values for the command's fieldsObject parameter. | |
Generic:: |
public | function | The tracker this command will be applied to, if specified. | |
Pageview:: |
constant |
Overrides Send:: |
||
Pageview:: |
public | function |
Create constructor. Overrides Send:: |
|
Send:: |
protected | property | The event hitType parameter. | |
Send:: |
private static | property | ||
Send:: |
public | function |
An array of commands to be sent to Google Analytics. Overrides Generic:: |
2 |