That’s all clearly explained in the link I shared earlier ?? Here are the related bits:
Note that this will only delete views data related to Time Ranges (last 24 hours, last 7 days, and so on.)
and:
The total views count of your posts and pages won’t be affected by this in any way.
What gets deleted depends entirely on how you configure the Data Logging feature.
Is this because it is stored in another table?
Correct.
Also, if I want to reduce the size of the current database with respect to the above, is there a query I could run?
The very last paragraph of the FAQ I shared above has a suggestion regarding this, but if you don’t want to use a plugin then you can also optimize any database table manually via the OPTIMIZE table statement. The suggested plugin “just” automates this for you but if you don’t mind executing this query manually then that works too.
Also, how does Data Logging impact widgets which use 7 days, 5 days views data and posts published within that period?
If you set the plugin to keep only 5 days of data, the widget can display only up to 5 days of data no matter what time range you select (except for “All-time” of course.) Same thing applies to the Stats dashboard.
-
This reply was modified 3 years, 7 months ago by Hector Cabrera. Reason: Reworded for clarity