if (window.location.search.includes("fbclid")) { var newUrl = window.location.origin + window.location.pathname; window.history.replaceState({}, document.title, newUrl); }