PHP And HTML Language A Data Analytics Project Help

I have a shopping websites made with PHP and HTML language and have Database working in XAMPP server I need to Create a data analytics area on my project. Include analysis for three data “issues” behaviors on the sit for example :

1) which product is bought the most.

2)which product is searches the most

3) what time of day do you see the most usage on site