You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

analytics.js 879B

1234567891011121314151617181920212223
  1. (function (ctx) {
  2. function Analytics() {
  3. /**
  4. * Google Analytics
  5. */
  6. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  7. (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)
  8. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  9. ga('create', 'UA-319188-14', 'jit.si');
  10. ga('send', 'pageview');
  11. }
  12. Analytics.prototype.sendEvent = function (action, data, label, browserName) {
  13. // empty label if missing value for it and add the value,
  14. // the value should be integer or null
  15. var value = Math.round(parseFloat(data));
  16. ga('send', 'event', 'jit.si',
  17. action + '.' + browserName, label ? label : "", value ? value : null);
  18. };
  19. ctx.Analytics = Analytics;
  20. }(window));