Skip to content

Latest commit

 

History

History
268 lines (187 loc) · 9.69 KB

ddl-tools-plugin-page-deep.md

File metadata and controls

268 lines (187 loc) · 9.69 KB

pageDeepPlugin

Plugin that adds detailed page-related methods to ddl-tools.

Kind: global constant
Example

import DDLTools from 'ddl-tools';
import DDLValidator from 'ddl-validator';
import pageDeepPlugin from 'ddl-tools-plugin-page-deep';
import schema from './path/to/mySchema';

const ddlValidator = new DDLValidator(schema);
const ddlTools = new DDLTools(window.digitalData, ddlValidator);
ddlTools.use(pageDeepPlugin);

pageDeepPlugin.setPageId(value) ⇒ object

Records the page's identifier.

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setPageName(value) ⇒ object

Records the page's name.

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setDestinationURL(value) ⇒ object

Records the page's destination URL (ie. document.location).

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setReferringURL(value) ⇒ object

Records the page's referring URL (ie. document.referrer).

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setSysEnv(value) ⇒ object

Records the page's system environment (ie. production vs development).

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setVariant(value) ⇒ object

Records the page variant (A/B testing).

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setVersion(value) ⇒ object

Records the page's version.

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setBreadCrumbs(breadCrumbs) ⇒ object

Records the page's bread crumbs (semantic path).

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
breadCrumbs Array.<string> path list within site hierarchy

pageDeepPlugin.setAuthor(value) ⇒ object

Records the name of the page's author.

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setIssueDate(value) ⇒ object

Records the page's issue date. (JS Date or ISO 8601)

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setEffectiveDate(value) ⇒ object

Records the page's effective date. (JS Date or ISO 8601)

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setExpiryDate(value) ⇒ object

Records the page's expiration date. (JS Date or ISO 8601)

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setLanguage(value) ⇒ object

Records the human language the page is written in. (ISO 639)

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setGeoRegion(value) ⇒ object

Records the geographic region the page applies to (ie. country). (ISO 3166)

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setIndustryCodes(value) ⇒ object

Records the industry codes the page applies to. (Standard Industrial Classification / SIC code)

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setPublisher(value) ⇒ object

Records the page's publisher name.

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setPagePrimaryCategory(value) ⇒ object

Records the primary category of the page.

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setPageSubCategory(value) ⇒ object

Records the sub-level category of the page.

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set

pageDeepPlugin.setPageCategoryProductType(value) ⇒ object

Records the type of product in the page.

Kind: static method of pageDeepPlugin
Returns: object - - Self reference for chaining

Param Type Description
value string value to set