Next.js Discord

Discord Forum

Tracking leads: can I use some tool to discover how the lead found my product?

Unanswered
Drever posted this in #help-forum
Open in Discord
Avatar
DreverOP
I want to know if a lead came from facebook ads or google ads. Anyone can help with it?

2 Replies

Avatar
not-milo.tsx
you can try getting that information from the referrer property attached to the document object or from the Referer header that comes attached to the request made to your page. That won't always work tho since a link can have a rel property that prevents the referrer from being set (e.g. rel="noreferrer noopener").
alternatively you can gather that information from a form as part of the onboarding flow when the user signs up to your application