if (window.location.href.indexOf('thank-you') > -1) { }