I'm trying to setup outbound link tracking in Google Analytics, I want to track to see if my social media icons are driving traffic to my social media accounts. In order to do this I need to add the following code to my <a href=""> link <a href="http://www.example.com" onClick="recordOutboundLink(this, 'Outbound Links', 'example.com');return false;"> Here is the code from the plugin I'm using // Facebook if ( $facebook != '' && $facebook != ' ' && file_exists($smw_dir.'/facebook.png')) { ?><a href="<?php echo $facebook; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/facebook.png" alt="<?php echo $imgcaption; ?> Facebook" title="<?php echo $imgcaption ?> Facebook" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php } else { echo ''; //If no URL inputed } So my question is how do I get the above html attributes to be served from the above php code. Thanks in advanced