protected function defineSettings()
{
$defaultTrackingId = "";
$seomatic = craft()->plugins->getPlugin('Seomatic');
if ($seomatic && $seomatic->isInstalled && $seomatic->isEnabled) {
$seomaticSettings = craft()->seomatic->getSettings(craft()->language);
$defaultTrackingId = $seomaticSettings['googleAnalyticsUID'];
}
return array('googleAnalyticsTracking' => array(AttributeType::String, 'label' => 'Google Analytics Tracking ID:', 'default' => $defaultTrackingId), 'stripQueryString' => array(AttributeType::String, 'label' => 'Strip Query String from PageView URLs:', 'default' => true), 'productCategoryField' => array(AttributeType::String, 'label' => 'Commerce Product Category Field:', 'default' => ''), 'productBrandField' => array(AttributeType::String, 'label' => 'Commerce Product Brand Field:', 'default' => ''), 'autoSendAddToCart' => array(AttributeType::String, 'label' => 'Auto Send Commerce Analytics:', 'default' => true), 'autoSendRemoveFromCart' => array(AttributeType::String, 'label' => 'Auto Send Commerce Analytics:', 'default' => true), 'autoSendPurchaseComplete' => array(AttributeType::String, 'label' => 'Auto Send Commerce Analytics:', 'default' => true));
}