You are here

public function AutoLink::__construct in Googalytics - Google Analytics 8

Create constructor.

Parameters

array $domains: A list of domains.

bool|null $useAnchor: Add linker parameter to anchor rather than query (optional).

bool|null $decorateForms: Add linker parameters to form submissions (optional).

string $tracker_name: The tracker name (optional).

int $priority: The command priority.

Overrides Generic::__construct

File

src/AnalyticsCommand/Linker/AutoLink.php, line 47

Class

AutoLink
Class AutoLink.

Namespace

Drupal\ga\AnalyticsCommand\Linker

Code

public function __construct(array $domains, $useAnchor = NULL, $decorateForms = NULL, $tracker_name = NULL, $priority = parent::DEFAULT_PRIORITY) {
  parent::__construct('linker:autoLink', [], $tracker_name, $priority);
  $this->domains = $domains;
  $this->useAnchor = $useAnchor;
  $this->decorateForms = $decorateForms;
}