I’m trying to track an outbound link using Google Analytics on a ModX site. Instructions from GA indicated to setup the URL like this:
<a href="http://www.folding-bike-store.com" onClick="javascript: pageTracker._trackPageview("/folding-bike-store.com");" target="_blank">
After doing this via the HTML tool and saving the page in ModX, the HTML has changed to this:
<a onclick="javascript: pageTracker._trackPageview(" href="http://www.folding-bike-store.com" target="_blank">
As a result, tracking is not working.
I’m a ModX noob. Sorry if I missed something in the documentation or forums. Anyone have insight on this?
Thanks