I've thought of creating a MySQL table with the following structure:
id | date | page_address | ip_array
1 | 12-12-12 | /page.php | ip1, ip2, ip3, ip4
Then for each visited page in my website, it would:
- check for the row containing today's date and current page (if there is none, insert one).
- check if the visitor's ip is included in the field
ip_array
, if it's not, then include it.
After this, I'll have a statistic of how many different visitors I've had in each page and each day.
Is it an acceptable way of doing this?