private readonly InstanceService
$instanceService ) { } /**
* @param mixed[] $additionalData
*
* @return array<string, mixed>|null
*/
public function fireTrackingEvent(string
$eventName, array
$additionalData =
[]): ?array
{ if (!
$this->instanceService->
getInstanceId()) { return null;
} $additionalData['shopwareVersion'
] =
$this->instanceService->
getShopwareVersion();
$payload =
[ 'additionalData' =>
$additionalData,
'instanceId' =>
$this->instanceService->
getInstanceId(),
'event' =>
$eventName,
];
try {