Inserting current href with javascript
<p>I'm editing a Wordpress Plugin where I need to track outbound clicks with Google Analytics' Event tracking javascript code. The challenge is, I can only edit the one php file that produces multiple links.  In the code below I just need to replace the part "this.getAttribute('href')" with the href of that link.  How can this be done?  I have tried the this.getAttribute('href') code but it doesn't execute.</p>

<pre><code>&lt;a href="http://lifeplace.com.au/" onclick="trackOutboundLink(this, 'Outbound Links', this.getAttribute('href')); return false;" title=""&gt;&lt;img class="soliloquy-item-image" src="http://www.96five.com/wp-content/uploads/2013/03/image.jpg" alt="" title="Lifeplace"&gt;&lt;/a&gt;
</code></pre>
