<script type="text/javascript">
  var Keen=Keen||{configure:function(a,b,c){this._pId=a;this._ak=b;this._op=c},addEvent:function(a,b,c,d){this._eq=this._eq||[];this._eq.push([a,b,c,d])},setGlobalProperties:function(a){this._gp=a},onChartsReady:function(a){this._ocrq=this._ocrq||[];this._ocrq.push(a)}};
  (function(){var a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"==document.location.protocol?"https://":"http://")+"dc8na2hxrj29i.cloudfront.net/code/keen-2.0.0-min.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)})();
  Keen.configure("2c5817f925ad436e98fe114d8812263f", "");
</script>

<script type="text/javascript">
  function trackSubmit(e) {
    Keen.addEvent("submits", { time: new Date().getTime() }, function() {
      document.forms[0].submit();
    });
  }
</script>

<form method="POST" action="http://foo.com" onsubmit="trackSubmit(); return false;">
  <input type="submit" value="submit">
</form>

Add an example that shows how to intercept a form submission and publish an event
Add an example that shows how to intercept a form submission and publish
an event
