I am not sure if there is a simple way to do that, but one solution which can work is get an HTTP referrer and parse it to get the category name.
In PHP you can get a referrer like this – $_SERVER[‘HTTP_REFERER’]
I am not sure if there is a simple way to do that, but one solution which can work is get an HTTP referrer and parse it to get the category name.
In PHP you can get a referrer like this – $_SERVER[‘HTTP_REFERER’]