How to track from which page a form was submitted

There are solutions in the forum that demonstrate how to use JavaScript variables to populate hidden fields that get submitted with the form.

Here is an example.