JSFiddle - React, Tailwind, and code Playground
HTML
<a href="http://google.com">Google</a>
<script>
var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-3311311113113-1']);
_gaq.push(['_trackPageview']);(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src='http://www.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);})();
</script>
JavaScript
$("a").each(function(){
$(this).attr('href', function(i,v){
return _gat._getTrackerByName()._getLinkerUrl(v);
});
});