How to Specify from URLs
How to specify parameters when creating links from external sites
Target Features
How to Specify Parameters
// Parameters are stored for each page ID to maintain parameters during page transitions
type Params = {[pageId: string]: {[paramId: string]: string}};
// Each parameter value is specified as a string using JSON.stringify (details below)
// pageId and paramId are actually strings like 68783eb9c4b4b71483a1d617
const params: Params = {
"page1": {
"param1": JSON.stringify("value1"),
"param2": JSON.stringify(123)
},
"page2": {
"param3": JSON.stringify(true),
"param4": JSON.stringify(["value1", "value2"])
}
};
const query = `?cdm.params=${encodeURIComponent(JSON.stringify(params))}`;Shortcut Format Specification
How to Specify Parameter Values
Type
Specification Method
Shortcut Format
Specification Method Details
Last updated
Was this helpful?

