Skip to content

Commit

Permalink
Fix Argument #1 ($userId) must be of type ?string, int given (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Nov 14, 2024
1 parent b51a30d commit 2a5ac4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/GAClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function setTrackingData(DataObject $data): void
$this->getRequest()->setTimestampMicros($this->getMicroTime());

if ($data->getUserId()) {
$this->getRequest()->setUserId($data->getUserId()); // magento customer_id
$this->getRequest()->setUserId((string) $data->getUserId()); // magento customer_id
}
}

Expand Down

0 comments on commit 2a5ac4f

Please sign in to comment.