constructor( uri ) {
    this.params = {};
    ( new URL( uri ) ).searchParams.forEach(( val, name ) => {
      this.params[ name ] = val;
    });
  }
Inspired by https://github.com/keithclark/gadebugger/blob/master/src/core/uaBeacon.js