public function __construct(array $options = [])
{
$this->trackingId = array_get($options, 'tracking_id');
$this->trackingDomain = array_get($options, 'tracking_domain', 'auto');
$this->displayFeatures = array_get($options, 'display_features', false);
$this->anonymizeIp = array_get($options, 'anonymize_ip', false);
$this->autoTrack = array_get($options, 'auto_track', false);
$this->debug = array_get($options, 'debug', false);
if ($this->trackingId === null) {
throw new InvalidArgumentException('Argument tracking_id can not be null');
}
$this->trackingBag = new TrackingBag();
}