Access document's revision history in page template

Good morning,

Our analytics team would like to be able to access the date that a content item was first published (made live on the website), using Google Tag Manager - to do so we need that information to be available in the page template.

The only way I can think of to get that information is from the item’s revision history, and to get the publish date of the earliest revision that went live.

Is there any way to pass this information to the front end page templates, via a Java component or another method?


you can reach the version history of a document through its unpublished variant.

There’s also a forge plugin as well: