What are the potential syntax errors in the provided PHP code for setting a cookie through image retrieval?

The potential syntax errors in the provided PHP code for setting a cookie through image retrieval are missing semicolons at the end of lines and incorrect concatenation of variables within the string. To solve this issue, ensure that each line ends with a semicolon and use proper concatenation syntax.

<?php
$cookie_name = "user";
$cookie_value = "John Doe";
setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/");
echo '<img src="image.jpg" alt="tracking pixel" width="1" height="1" style="display:none;">';
?>