You are here

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

Create constructor.

Parameters

string $tracking_id: A Google Analytics property ID.

string $cookie_domain: The cookie domain.

string $tracker_name: The tracker name.

array $fields_object: A set of additional options for the command.

int $priority: The command priority.

Overrides Generic::__construct

File

src/AnalyticsCommand/Create.php, line 40

Class

Create
Class Create.

Namespace

Drupal\ga\AnalyticsCommand

Code

public function __construct($tracking_id, $cookie_domain = 'auto', $tracker_name = NULL, array $fields_object = [], $priority = self::DEFAULT_PRIORITY) {
  parent::__construct('create', $fields_object, $tracker_name, $priority);
  $this->trackingId = $tracking_id;
  $this->cookieDomain = $cookie_domain;
}