public function Send::getSettingCommands in Googalytics - Google Analytics 8
An array of commands to be sent to Google Analytics.
Return value
array An array of command values.
Overrides Generic::getSettingCommands
2 methods override Send::getSettingCommands()
- Event::getSettingCommands in src/
AnalyticsCommand/ Event.php - An array of commands to be sent to Google Analytics.
- Timing::getSettingCommands in src/
AnalyticsCommand/ Timing.php - An array of commands to be sent to Google Analytics.
File
- src/
AnalyticsCommand/ Send.php, line 53
Class
- Send
- Class Send.
Namespace
Drupal\ga\AnalyticsCommandCode
public function getSettingCommands() {
$command = [
($this->trackerName ? $this->trackerName . '.' : '') . $this->command,
$this->hitType,
];
if (!empty($this->fieldsObject)) {
$command[] = $this->fieldsObject;
}
return [
$command,
];
}