Adobe Target · updated
How to migrate Adobe Target from at.js to the Web SDK
Moving Target from at.js to the Experience Platform Web SDK means replacing one JavaScript library with another, not upgrading it. The Web SDK (alloy.js) sends one request for all Adobe applications through a datastream, where at.js sends its own Target request. Adobe publishes a migration tutorial; the work is mostly in the page code, the prehiding snippet and anything that reads Target's answers.
In plain words
Today your pages load a Target file called at.js. Adobe's newer approach is one shared file, the Web SDK, that serves Target, Analytics and the other Adobe applications together. Your tests and personalisation keep working, but the code that asks for them and the settings around it change. It is a project for developers, and it needs the analytics team in the room because both teams now share one request.
What Adobe says is different
| Area | at.js 2.x | Web SDK |
|---|---|---|
| Library | at.js for Target, with Visitor.js and AppMeasurement.js for the other applications | One library, alloy.js, for all Adobe applications |
| Requests | A separate call for each application | A single call for all applications; a change to the data can affect several of them |
| Network | Adobe Experience Cloud Edge Network (tt.omtrdc.net) | Adobe Experience Platform Edge Network (edge.adobedc.net) |
| Load order | Libraries and calls must load in a set order | Adobe says load order is not a concern |
| Terms | mbox, pageLoad event (global mbox), offer | decisionScope, the __view__ decisionScope, proposition |
Adobe states plainly that the Web SDK is not an evolution of at.js. It is a new, unified way to implement all Adobe applications on the web.
How at.js calls map to Web SDK commands
| Task | at.js | Web SDK |
|---|---|---|
| Fetch and render page-load offers | Automatic when pageLoadEnabled is on | sendEvent with renderDecisions: true |
| Fetch without rendering | getOffer or getOffers | sendEvent with decisionScopes: ["__view__"] |
| Fetch a named mbox | getOffer with the mbox name | sendEvent with the mbox name in decisionScopes |
| Apply offers | applyOffer or applyOffers | applyPropositions |
| Track an event | trackEvent or sendNotifications | sendEvent with eventType decisioning.propositionDisplay or decisioning.propositionInteract |
| Single-page app view change | triggerView("homeView") | sendEvent with xdm.web.webPageDetails.viewName |
| Profile attributes | profile. parameters on getOffer or getOffers | data.__adobe.target with keys prefixed profile. |
| Recommendations data | entity. parameters | data.__adobe.target with keys prefixed entity. |
| Third-party ID | mbox3rdPartyId | identityMap, with the namespace set on the datastream |
| Property token | at_property in targetPageParams | Set on the datastream, under the Adobe Target service |
| Global settings override | window.targetGlobalSettings | Not supported in the Web SDK |
What does not carry over
- On-device decisioning. Adobe's tutorial says this feature is not supported by the Web SDK.
- The Implementation methods settings in Target's Administration screen. Adobe says all editable settings there apply to at.js only.
- The at.js prehiding snippet. The Web SDK uses a different style ID, alloy-prehiding, and Adobe warns the at.js snippet may not work properly.
- window.targetGlobalSettings. Adobe's comparison page lists it as not supported in the Web SDK.
Moving page by page
Adobe says that if at.js and the Web SDK are used at the same time you may see rendering and tracking issues, so a page should load one or the other. For a site that moves page by page, the tutorial sets two options in the Web SDK configuration: targetMigrationEnabled, which lets the Web SDK read and write the mbox and mboxEdgeCluster cookies at.js uses, and idMigrationEnabled, which reads and sets the older AMCV cookies. Adobe's configuration page adds that overrideMboxEdgeServer should be enabled in targetGlobalSettings on the pages still on at.js.
Adobe's at.js version page says at.js 1.x is in maintenance mode and at.js 2.x has full support. We found no end-of-support date for at.js on Adobe's pages, so this page gives none.
Web SDK configuration for a page-by-page migration, as Adobe's tutorial writes it (the datastream ID and organisation ID are Adobe's placeholders)
alloy("configure", {
"edgeConfigId": "ebebf826-a01f-4458-8cec-ef61de241c93",
"orgId":"ADB3LETTERSANDNUMBERS@AdobeOrg",
"targetMigrationEnabled":true,
"idMigrationEnabled":true
});Request and render page-load activities
alloy("sendEvent", {
"renderDecisions": true
});The steps in Adobe's migration tutorial
- Assess your current implementation and choose an approach: the whole site at once, or page by page.
- Set up the initial components that connect to the Experience Platform Edge Network, including a datastream with the Adobe Target service.
- Replace at.js with the Web SDK and swap the prehiding snippet for the Web SDK version.
- Extend the implementation for your use cases: extra parameters, single-page app view changes, response tokens.
- Update objects in the Target interface, such as profile scripts, activities and audience definitions.
- Validate the final implementation before switching in production.
Related tools and pages on this site
- Adobe tag, Web SDK and consent scan (finds at.js and its version on a live site)
- Web SDK snippet builder (configure, sendEvent and an XDM skeleton)
- Adobe Experience Platform Web SDK and Customer Journey Analytics answers
- Target Delivery API request builder (free, runs in your browser)
Questions
Is the Web SDK just a newer at.js?
No. Adobe says the Web SDK is not an evolution of the at.js library. It is a separate library, alloy.js, that serves all Adobe applications with one request.
Can at.js and the Web SDK run on the same page?
Adobe says that if both libraries are used at the same time you may experience rendering and tracking issues. Run one per page, and use targetMigrationEnabled and idMigrationEnabled while different pages use different libraries.
Do we lose visitor profiles when we switch?
Adobe says the Target visitor profile lifetime is not affected by the implementation approach, and targetMigrationEnabled keeps the visitor profile when a visitor moves between at.js pages and Web SDK pages.
Does configuring the Web SDK start Target calls?
No. Adobe's tutorial notes that including and configuring the library does not make any network call. A sendEvent command does.
How do I find out which pages still load at.js?
Our tag scan reads the public pages of a site and lists at.js, its version and whether the Web SDK is also present. Your tag manager's rules are the other place to look.
Sources
- Adobe: Target at.js to Platform Web SDK migration overview (checked 13 Nov 2026)
- Adobe: Replace the at.js library with Platform Web SDK (checked 13 Nov 2026)
- Adobe: Compare the at.js library to the Adobe Experience Platform Web SDK (checked 13 Nov 2026)
- Adobe: targetMigrationEnabled (Web SDK configure command) (checked 13 Nov 2026)
- Adobe: at.js version details (checked 13 Nov 2026)
- Adobe: How Adobe Target works (libraries, activity types, edge network, bots) (checked 13 Nov 2026)
Facts about Adobe's products on this page are from the linked Adobe pages, read on the date shown beside each. Explanations, steps and examples are ours unless marked as Adobe's. If Adobe's page and this one differ, Adobe's page is right.
Surge Migrate is not affiliated with Adobe and claims no Adobe partner status. Adobe product names are trademarks of Adobe.