startSetup(); $installer->run("INSERT INTO `{$this->getTable('core/config_data')}` (scope, scope_id, path, value)" . " SELECT scope, scope_id, 'google/analytics/type', 'analytics'" . " FROM `{$this->getTable('core/config_data')}`" . " WHERE path = 'google/analytics/active' AND value = '1'"); $installer->endSetup();