0

I have a question please guide.

I want to know from which social account user click on my sites link.

For example: I shared my site links on Facebook and WhatsApp and now users are coming from these links. I want to know if user click my link from Facebook or WhatsApp, without passing any query parameters to link.

I tried http_referrer

Tim Lewis
  • 27,813
  • 13
  • 73
  • 102

1 Answers1

0

In PHP, you can use the $_SERVER['HTTP_REFERER'] to know where the user came from.

Steven Kuipers
  • 809
  • 7
  • 19