I'm trying to build a referral system with Next page router, here is my plan and question.
- I can add a unique param in the URL for each user as part of the referral link
- When a new users opens the referral URL that contains the referral param, the backend captures the param and save it to the DB
The question is in page router, how to capture this front end URL param at the backend? thanks