Methods

The Server SDK adds the forRequest method, which doesn’t exist in the Web SDK.

It supports the following Web SDK commands as methods: appendIdentityToUrl, applyResponse, configure, getIdentity, getLibraryInfo, sendEvent, setConsent, and setDebug.

The following Web SDK commands aren’t available, because they depend on a browser or on components that the Server SDK doesn’t include:

  • applyPropositions
  • createMediaSession
  • getMediaAnalyticsTracker
  • sendMediaEvent
  • sendPushSubscription
  • subscribeRulesetItems

Configuration options

sendEvent options

Frequently asked questions

Can I use the Server SDK and the Web SDK on the same website?

Yes. A common pattern is to request personalization on the server and render it in the browser. See Hybrid personalization. Both libraries can send data to the same datastream if its Access Type is Mixed Authentication. Both use the same cookie names for identity and consent.

Why does every event need a primary identity?

The Server SDK sends events to the authenticated Edge Network Server API. Because the request comes from your server, the Edge Network can’t use the visitor’s browser cookies to identify them. Instead, it requires a primary identity in the event. See xdm.

Can I use the Server SDK in serverless functions?

Yes, if the function’s runtime meets the requirements. Create and configure the instance at the top level of your module, outside the function handler. This way, warm invocations reuse the configured instance and its cached access token. Call forRequest inside the handler for each invocation.

Can I use Adobe Experience Platform Debugger?

No. Adobe Experience Platform Debugger is a browser extension that inspects pages. To debug the Server SDK, set debugEnabled to true or call setDebug, and review your server’s console output.

Announcements

Get hands-on with agentic AI.

Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.

Find an event

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.

Ask AI