Page properties through java script in source code
Hi,
For tracking purpose on different page , I need to display page properties( page title, tags, publication date) in source code of the page through javascript function.
My Client wants to add one javascript function on parent page and add variables for all three page propertie.By USE api I can handle this but how can i display the page properties by javascript in source code .
Something like this:
<script>
function tackingData() {
title: "Abc home page",
tags: "abcpagetag",
publisheddate: "2018-04-30T14:02:56.421Z"
}
</script>
Please suggest.
Regards,