return null;
} private function storeUniqueIdInDb(string
$uniqueId): void
{ $uniqueRowId =
$this->connection->
fetchOne("SELECT id FROM s_core_config_elements WHERE name LIKE 'trackingUniqueId' LIMIT 1"
);
if ($uniqueRowId === false
) { $this->connection->
executeStatement("INSERT INTO s_core_config_elements (form_id, name, value, label, description, type, required, position, scope)
VALUES ('0', 'trackingUniqueId', 's:0:\"\";', 'Unique identifier', '', 'text', '0', '0', '1')"
);
$uniqueRowId =
$this->connection->
lastInsertId();
} $sql = <<<'sql'
INSERT INTO s_core_config_values (element_id, shop_id, value) VALUES (
:uniqueRowId, 1, :value
)
sql;
$this->connection->
executeStatement( $sql,
[