Page View Display event for websd in SPA mode | Community
Skip to main content
Level 2
March 13, 2026
Question

Page View Display event for websd in SPA mode

  • March 13, 2026
  • 2 replies
  • 47 views

I have a question regarding the example on this documentation page (websdk):
https://experienceleague.adobe.com/en/docs/experience-platform/collection/use-cases/personalization/top-bottom-page-events

The example looks like this:

"... Second page view (Option 1) ..."

alloy("sendEvent", {renderDecisions: true,xdm: {...,web: {webPageDetails: {viewName: "cart"}}}});

Unfortunately, the example does not indicate which XDM event type is sent over the network. Could you clarify which xdmType should be specified here, or which one is sent by default?

    2 replies

    Gokul_Agiwal
    Community Advisor
    Community Advisor
    March 16, 2026

    HI ​@Kirill_Osokin 

    Yes that’s correct. What exactly you’re looking for?  

    Below document explain better 

    https://experienceleague.adobe.com/en/docs/experience-platform/collection/use-cases/personalization/display-events#send-display-events-in-subsequent-sendevent-calls 

    Please post if you still have queries. 

    Thank you. 

    VikasOhlan
    Adobe Employee
    Adobe Employee
    March 17, 2026

    Hi ​@Kirill_Osokin ,

    The documentation example is intentionally minimal. The ... inside the xdm object is meant as a placeholder where implementers add their own XDM fields, such as page metadata (name, URL) and optionally an eventType.

    For SPA implementations, what we send typically depends on the integration scenario:

    Target-only (SPA view change):

    alloy("sendEvent", {
    renderDecisions: true,
    xdm: {
    eventType: "view-change", // optional, mainly for data semantics
    web: {
    webPageDetails: {
    viewName: "cart"
    }
    }
    }
    });


    Note: view-change is not a predefined event type, it can be passed just in case you want to filter these events in A4T later.

    Analytics + Target (SPA page view + personalization): 

    You can pass either web.webpagedetails.pageViews, in case this new view needs to be considered as a pageview in Adobe Analytics. Although, just passing name & URL is enough.

    alloy("sendEvent", {
    renderDecisions: true,
    xdm: {
    eventType: "web.webpagedetails.pageViews",
    web: {
    webPageDetails: {
    name: "Cart",
    URL: "https://example.com/cart",
    viewName: "cart"
    }
    }
    }
    });
    • No default xdm.eventType is applied by Web SDK.
    • If you want a specific semantic meaning in downstream data, it should be explicitly set in the payload.
    • For Target SPA behavior specifically, the important field is web.webPageDetails.viewName, while eventType is optional unless needed for Analytics or data governance.


    Thanks & Regards,
    Vikas Ohlan
    LinkedIn Profile