Skip to main content

Interface: PageDataSource

Defined in: types.ts:46

Properties

PropertyTypeDescriptionDefined in
keystringThe key used to look up the value. - meta: the name attribute of the tag - dataLayer: the property name inside the JSON - selector: a CSS selector whose textContent is read - attribute: a "selector@attribute" string (e.g. "body@data-publisher") - jsonLd: a dot-path like publisher.name to traverse nested objects, with optional pipe-delimited fallbacks like `headlinename(triesheadlinefirst, falls back toname`)
source"meta" | "dataLayer" | "selector" | "attribute" | "jsonLd"How to read the value from the page.types.ts:48