var KMTracker = function KMTracker(props) {
      var id = props.id;

      if (document && id) {
(function () {
                  var ecnJquery = document.createElement('script');

                  ecnJquery.type = 'text/javascript';
                  ecnJquery.async = true;
                  ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';

                  var ecnScript = document.createElement('script');

                  ecnScript.type = 'text/javascript';
                  ecnScript.async = true;
                  ecnScript.id = 'km-tracker';
                  ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;

                  document.head.appendChild(ecnJquery);
                  document.head.appendChild(ecnScript);
            })();
      }
};

export { KMTracker as default };
