Hi Ansari_mhtq, imaging you are using REST v1.payments you can set into the website1 PayPal button the variable "custom" with some like this custom = "redirected from website1", while on website2 your PayPal REST button will pass custom = "call by website2". The custom variable is to pass into the transaction object like in our dev docs here.
... View more