Use the browser developer console to verify that sitemap events are firing and translating correctly before uploading your schema to Data 360.
[ACTION REQUIRED: Review Note] - NOTE: Even without a schema uploaded in Data 360 Setup, the browser console will show translated events in real time. Verify all event names,
eventTypevalues, and payload fields in the console first, then upload the schema once everything looks correct.
Enabling Debug Logging
Add SalesforceInteractions.setLoggingLevel("debug"); to your sitemap.js file, above the SalesforceInteractions.init() call. This enables verbose SDK logging in the browser developer console.
- Open your
sitemap.jsfile. - Add the following line as the first line, before
SalesforceInteractions.init():
SalesforceInteractions.setLoggingLevel("debug");
SalesforceInteractions.init({
// your init config
});
- Save the file and upload it to your connector as described in the previous step.
[ACTION REQUIRED: Review Note] - NOTE: Remove or disable
setLoggingLevel("debug")before deploying to production to avoid exposing verbose logs to end users.
Checking Event Logs in the Browser Console
- Open your website in a browser.
- Open Developer Tools — press
F12on Windows orCmd + Option + Ion Mac. - Click the Console tab.
- Navigate through your site and trigger key interactions — page views, button clicks, form submissions, add to cart, etc.
- In the console filter bar, type
Events translated for Data Cloudto isolate the relevant SDK output. Validate that both Profile and Engagement events are present in the array and contain the expectedeventTypevalues and payload fields. - Verify that every event you expect to capture is appearing with the correct
eventTypeand field values.
[ACTION REQUIRED: Update Image Here] - Original Context/URL: Screenshot of the browser developer console showing translated event logs from the SDK with eventType and payload fields visible.
Summary
Once all expected events are visible in the console with correct eventType values and payloads, your sitemap is ready. Upload the schema to your connector in Data 360 Setup and proceed to create a Data Stream.