Hello. I have a table of clicks, it contains a visitor's token, its type, item id, seller id.

user_token | ip | product_id | seller_id 

It all works like this: the visitor enters the product card, there are offers under the product card, the visitor clicks on one of the offers, his token is written, type, product id, and offer id. Then there is a redirect to the seller’s website. The question is how to determine the user who has already clicked on this proposal, having his data (token and ip).

Closed due to the fact that the essence of the question is not clear to the participants of the D-side , aleksandr barakin , user194374, Streletz , Vartlok Aug 9 '16 at 13:13 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • It so happens that the user wakes up unique for all products, and I need to make it unique (that is, if he clicked several times, only 1 click was counted) for one product. Suppose a visitor clicked on the offer from the vendor "world of refrigerators" under the product "bosch 123". But if a visitor clicks on the offer of the same seller under the item "indesit k321", his click will be counted but also just 1 click. - Alex_01
  • I just can not imagine how. I would have some kind of example :) - Alex_01
  • The question was how to determine, not how to do - tCode
  • Yes, you are right :) I will dig in this direction. Thanks for the tip. - Alex_01
  • @tCode Please post your comments as a response. - Nicolas Chabanovsky

1 answer 1

You need to write the user_token to $_COOKIE

When checking in the future, check the bunch user_token | ip | product_id user_token | ip | product_id

So you can track the unique transitions.