G
G
GaserV2016-10-31 20:04:12
Laravel
GaserV, 2016-10-31 20:04:12

How to implement the number of product views?

Tell me, how to implement views on the product? Interested in the number of unique views.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
Zlatoslav Desyatnikov, 2016-10-31
@pxz

You can make a display board.
In the plate, store the product ID, viewing time and IP address, make the address a unique field.
In the controller, in the show method, add information about the visit.

P
pujonehoc, 2016-10-31
@pujonehoc

I have an online store.
A HUGE number of search robots.
In a simple way, you do not implement viewing.
There needs to be something that only a human can do.
Without this, all statistics are lies.
There are a lot of search robots - almost every third visitor.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question