SALESFORCE-MARKETING-CLOUD-PERSONALIZATION practice question 23 of 25
In which two locations in the page Type definition can a developer pass in attributes?
Full set: 120 questionsWithin a pageType definition in the Sitemap, attributes can be passed in two primary locations for capturing user interactions. The listeners array is used to define event handlers (e.g., for clicks) that can trigger an interaction and pass associated attributes. The onActionEvent function is a property specifically designed to handle events sent via the SalesforceInteractions.sendEvent API, allowing for dynamic capture of actions and their attributes, which is particularly useful for single-page applications (SPAs).
A. isMatch: The isMatch function is a predicate that returns a boolean. Its sole purpose is to identify if the current page corresponds to the pageType, not to pass data.
C. cashDom: This is likely a typo for cachedDom, which is a property used to cache DOM element selections for performance optimization, not for passing attributes.
1. Salesforce Help. Configure a Sitemap for a Single-Page Application. This document provides examples showing the use of both listeners and onActionEvent within a pageType definition to capture interactions with attributes. See the code samples for productDetailPageType and cartPageType.
2. Salesforce Help. Sitemap JavaScript Object Reference. The reference details the properties of the pageType object, explicitly listing listeners (Type: Array) and onActionEvent (Type: Function) as valid properties for handling events and data capture.
Keep practicing
Take the free SALESFORCE-MARKETING-CLOUD-PERSONALIZATION practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other SALESFORCE-MARKETING-CLOUD-PERSONALIZATION practice questions
- Question 1What are two types that real time interaction management helps marketers to personalize t…
- Question 2Which data feed integrates purchase data into a profile in interaction studio?
- Question 3Which global template do you select and customize to provide product recommendations on t…
- Question 4What attribute and value is passed in the event API request for returning server side cam…
- Question 5What are the components of an Marketing Cloud Personalization web campaign?
- Question 6How often is the Event Stream report refreshed?
