src/tracker.js
/**
   * Undecorates a URL with __woopraid query param
   */
Undecorates a URL with __woopraid query param
Undecorates a URL with __woopraid query param
undecorate(url) {
    const regex = new RegExp(`[?&]+(?:${XDM_PARAM_NAME})=([^&#]*)`, 'gi');
    let _url = url;
    if (url && url.href) {
      _url = url.href;
    }
    if (_url) {
      return _url.replace(regex, '');
    }
  }
undecorate ( url ) { const regex = new RegExp ( ` ${ XDM_PARAM_NAME } ` , 'gi' ) ; let _url = url ; if ( url && url . href ) { _url = url . href ; } if ( _url ) { return _url . replace ( regex , '' ) ; } }
Undecorates a URL with __woopraid query param
Undecorates a URL with __woopraid query param