Unique URL - Booking Form

I’d like to hand out flyers - each with a unique “code” on it. You can use the code on the flyer to access a unique URL (i.e.“www.website.com/code”) and register for a service. Reasoning is if I track where each flyer was sent I can determine a response rate from a particular area.
I know how to use databases and dynamic pages to create the unique URL’s I need. I wanted to include a Wix Form on the dynamic page, but have no idea how to set it up in a way that distinguishes which URL the customer submitted it from.

For instance - If Customer 1 visits “www.website.com/code” and submits a request for services. Their information will be added on as a contact to my site and I’ll get an email notifying me that a customer submitted a request for services. But how do I determine which “code” or URL they used to submit the request?

Any ideas?

You might want to look into using a Wix Router.
https://support.wix.com/en/article/corvid-creating-a-router
Assuming that you would have a record somewhere of what variable data was on the flyer that got sent to each specific user so that you know who the variable data belongs to.

Otherwise, you could just take the info from their location once they have joined up as a site member.
https://www.wix.com/corvid/reference/wix-window.html#browserLocale
https://www.wix.com/corvid/reference/wix-window.html#getCurrentGeolocation

Are you using Wix Forms or did you create it from scratch?

Im comfortable creating it from scratch or using forms, but would prefer to use forms.

Thank you for your response! The article was helpful, but I can’t find any real world examples or applications on it. Do you know of any videos or links that could show me how to write the code necessary?

And if it’s helpful here is my strategy in more detail. So I was to begin by manually creating a database such as:
CODES | AREA |
1234 | North |
5678 | South |

Then use a dynamic page with a Wix form on it - accessible with a URL based specifically on the “Code” they received on a flyer. For instance, someone accessing “website.com/1234” can fill out a form… but how do I receive the data they inputted on the form in way that notifies me they used the “1234” URL to submit it?

More specifically, is there a way to create use “routers” in conjunction with form submissions? So that I know this data was submitted to me from this URL.

@contact50190 You cannot manipulate the data if you use Wix Forms because Wix Forms does not use a dataset. If you create from scratch you can use code to get current URL and set it as a field before Save.

Get URL: wix-location-frontend - Velo API Reference - Wix.com

Set field:

Before Save: Dataset - Velo API Reference - Wix.com

If you need, i offer private training services. www.codequeen.co