<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', '{{ site.google_analytics }}', 'auto');
  ga('send', 'pageview');

  $(document).ready(function(){
    $(".social-share-element").click(function() {
      ga('send', 'event', $(this).attr("social-network"), $(this).attr("social-action"), $(this).attr("social-target"));
    });
    $(".about-body-link").click(function() {
      ga('send', 'event', $(this).attr("link"), "click");
    });
  });
</script>

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', '{{ site.google_analytics }}', 'auto');
  ga('send', 'pageview');

  onload = function(e){
    // add events for sharing
    elements = document.getElementsByClassName("social-share-element")
    Array.prototype.forEach.call(elements, function(x) {
      x.addEventListener("click", function(){
        ga('send', 'event', x.getAttribute("social-network"), x.getAttribute("social-action"), x.getAttribute("social-target"));
      });
    });

    // add events for 'about me' clicks
    elements = document.getElementsByClassName("about-body-link")
    Array.prototype.forEach.call(elements, function(x) {
      x.addEventListener("click", function(){
        ga('send', 'event', x.getAttribute("link"), "click");
      });
    });
  }
</script>

Update to not use jQuery
Update to not use jQuery
