I have a WordPress site with a blog, and want to simplify the process of tracking the most visited posts that were published in a given month. While it's of course easy to find the most visited blog posts in Google Analytics for a given period of time, it's currently requires a manual process of cross-referencing to understand which of those posts were actually published in that time frame, and are not older posts. While I realize we could simply add the date to the URL, e.g. /year/month/page-slug, I would much rather implement something specifically with GA or GTM instead of modifying the actual URL structure (currently, it's just the page slug). I'm often unclear on when these sorts of things are better implemented in Google Analytics or Google Tag Manager, but I'm wondering what would be the simplest way to grab the post date (via JS) and pass to either GA or GTM as a tracking parameter that could then be used in compiling reports?
Most of the articles I've found around this topic seem to relate to older versions of GA (i.e. not GA4), so any direction here is much appreciated!