I have a form on my landingpage. Now, a thank you message is shown when the form is submitted with AJAX so the page isn't reloaded. Is there a way to change the url of the page when the form is submitted without creating a whole new thank you page?

This way, I can track goals in Google Analytics


url: mysite.com/landingpage

url when submitted: mysite.com/landingpage/?ok

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.