Django traffic source

Is there a way to show from where did the customer click, before sending an Order?

So, we have an ecommerce project, we do seo, but the client also runs Fb/Ig ads.

How can we show from where did the click came from, so we can measure and see if the customer was using google, or they saw an add on socials.

Thank you

Are you asking which ‘keyword - Google term’ a user used to make a purchase? If that is the case, you will need to implement Google Analytics 4, Server-Side Facebook CAPI, Google Search Console, and other similar tools, which are outside the scope of Django but are necessary to effectively track your sales and your marketing activities.

Thank you.
No i just want to find a way to see FROM which website/domain did the click came from and ordered something.

Sorry i thought i have explained properly.

Let’s say someone is searching on Google, he came from google and seo efforts.

Simeone clicks on Facebook add, or Instagram add.

Someone clicks on a link in ig bio or ordinary Facebook post.

Someone clicks on a website that is backlinking to us.

I need to learn how to show the website domain/traffic source for each order, so we can see from which domain did the click came from.

I hope that is clearer now.

Thanks

So, the free tool is Google Analytics. It shows user’s source/medium, dig to some reports and if you have setup proper conversion tracking, you will have your data.

Otherwise, you need to analyze each http request properly, eg: GitHub - ArRosid/django-visitor-ip: Get Visitor IP Address in Django Project · GitHub