If you don't want trouble escaping long strings of html you should try doing this:
$ip = "...";
$browser = "...";
$referred = "...";
$user_tracking_vars =<<<text
<br/>
<br/>
<strong>Browser and Operating System:</strong>
$browser
<br/><br/>
<strong>IP:</strong>
<a href="http://urbangiraffe.com/map/?ip={$ip}&from=drainhole">$ip</a>
<br/><br/>
<strong>Page Visited Before Contact Form:</strong>
$referred
<br/>
text;
// remember the text; from line above must start @ char 0...
or this:
<?php
$ip = "...";
$browser = "...";
$referred = "...";
?>
<br/>
<br/>
<strong>Browser and Operating System:</strong>
<?php echo $browser; ?>
<br/><br/>
<strong>IP:</strong>
<a href="http://urbangiraffe.com/map/?ip=<?php echo $ip;?>&from=drainhole"><?php echo $ip;?></a>
<br/><br/>
<strong>Page Visited Before Contact Form:</strong>
<?php echo $referred; ?>
<br/>
Any of the above will save you precious time escaping quotes.
Since I don't know in which context you're using $user_tracking_vars there's no need to discuss the advantages of having logic and output apart. :-)