> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.

# Messaging web SDK: setPageUrl and integration event fields

The Messaging web SDK now provides `setPageUrl(url)` on `window.adaEmbed` and `AdaMessagingClient`.
Use it to report the current page URL, such as after navigation in a single-page app.

The SDK uses this URL for URL-triggered campaigns, greeting path targeting, `initialURL`, and analytics.
Call `setPageUrl` after `start` and on each navigation.
See the [`setPageUrl` reference](/messaging/web/sdk-api-reference#setpageurl).

The `ada:integration:command`, `ada:integration:result`, and `ada:integration:event` window events now carry lifecycle fields only.
They contain no message text, agent identity, or credentials.
Hosts that read `detail.payload` must use these lifecycle fields instead.
See the [integration event fields](/messaging/web/security-best-practices#what-runs-in-your-page-and-what-does-not).