public function Create::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
File
- src/
AnalyticsCommand/ Create.php, line 69
Class
- Create
- Class Create.
Namespace
Drupal\ga\AnalyticsCommandCode
public function getSettingCommands() {
$command = [
$this->command,
$this->trackingId,
$this->cookieDomain,
];
if (!empty($this->trackerName)) {
$command[] = $this->trackerName;
}
if (!empty($this->fieldsObject)) {
$command[] = $this->fieldsObject;
}
return [
$command,
];
}