Event Debugging

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, eventType values, 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.

  1. Open your sitemap.js file.
  2. Add the following line as the first line, before SalesforceInteractions.init():
SalesforceInteractions.setLoggingLevel("debug");

SalesforceInteractions.init({
  // your init config
});
  1. 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

  1. Open your website in a browser.
  2. Open Developer Tools — press F12 on Windows or Cmd + Option + I on Mac.
  3. Click the Console tab.
  4. Navigate through your site and trigger key interactions — page views, button clicks, form submissions, add to cart, etc.
  5. In the console filter bar, type Events translated for Data Cloud to isolate the relevant SDK output. Validate that both Profile and Engagement events are present in the array and contain the expected eventType values and payload fields.
  6. Verify that every event you expect to capture is appearing with the correct eventType and 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.