diff --git a/packages/marko-web-gtm/components/context/content.marko b/packages/marko-web-gtm/components/context/content.marko index 9487f6cf8..7ca04e232 100644 --- a/packages/marko-web-gtm/components/context/content.marko +++ b/packages/marko-web-gtm/components/context/content.marko @@ -11,6 +11,7 @@ fragment ContentContextFragment on Content { id type name + labels siteContext { path } diff --git a/packages/marko-web-gtm/context/content.js b/packages/marko-web-gtm/context/content.js index c7b359cb2..be99f3107 100644 --- a/packages/marko-web-gtm/context/content.js +++ b/packages/marko-web-gtm/context/content.js @@ -31,6 +31,7 @@ module.exports = ({ obj, req }) => { type: content.type, name: content.name, published: content.published ? new Date(content.published).toISOString() : undefined, + labels: getAsArray(content, 'labels'), }, created_by: { id: createdBy.id,