I’m tracking page views and plotting them on a chart. Each ‘day’ shows it’s corresponding ‘views’.
The first view of a page on any given date creates the database entry if it doesn’t already exist. Then subsequent views just increment the value by 1. The next day the process repeats.
The issue I’m facing is that if nobody views a page for a particular day, then database entry for that page on that day is not created and my graph doesn’t have any data to show.
How would I automatically create an entry for every day, even if it is 0 without manually doing it for each page I’m tracking?