Skip to main content

Page Metadata

Page metadata scraping is being refactored. This documentation will be

updated to reflect the new implementation soon. :::

The SDK automatically collects page metadata from the DOM using configurable sources. By default it reads from the GTM data layer (<meta name="gtm-dataLayer">):

FieldData Layer Key
page_titlegtmStoryTitle
content_typegtmPageType
content_idgtmBspStoryId
publishergtmSiteName
object_typegtmPageType
object_idgtmBspStoryId
contextgtmCategory

Supported source types:

  • meta — reads from <meta name="key" content="value">
  • dataLayer — reads from the GTM data layer meta tag
  • selector — reads textContent from a CSS selector
  • attribute — reads an attribute from an element ("selector@attribute")

Any values you pass explicitly to track() override the auto-collected page data.