What is a good way to track a visit coming from a forwarded website?

So I would think there would be a few ways to do this, but what would be the best way to track a visit that is coming from a forwarded website and how that visit in the Vercel analytics?

I could create a landing page… but really I just want the information from the main page to show… would I need to duplicate the main page content on some other pages? there are a lot of stuff on it and doesn’t sound very quick and easy…

What if I forward it to a www.mymainpage/landingpage1 <–?? landingpage1 doesn’t exist, so my code would automatically forward it to the main page… would analytics record the /landingpage1 as visit page??

Do you know what I am saying? I am looking for a quick way to do a forward from a separate domain to my main page real domain, and record that visit… what do you think?

*** I am using the pages router, not the app router ***

Maybe I could also create a dynamic route that will forward the visit to the main page? Would analytics record the dynamic route?

Hey, Edgar! :waving_hand:

If I’m understanding correctly, you can track forwarded visits in a few ways.

The recommended approach is to use query parameters.

For example, you can forward traffic to your main page using a URL like www.yourmainpage.com?source=domain1. There’s no need to create duplicate pages, and Vercel Analytics will capture the visit along with the source parameter, making it easy to track where the traffic came from.

Let us know how you get on!