React Client Side SPA with Adobe Target | Community
Skip to main content
New Participant
December 11, 2023
Solved

React Client Side SPA with Adobe Target

  • December 11, 2023
  • 1 reply
  • 2931 views

I know Adobe Target has the ability to manipulate the DOM directly.  Are there best practices for using this technology within a React SPA (rendered client side)?

All the articles I found are pretty old and probably outdated at this point in time.  Wasn't sure if anybody had any working examples for reference.  

We typically have used JSON Offers only to this point as we can use that JSON and to then build React components directly inside our React codebase.  However, there is certainly interest in utilizing in having Adobe Target have more control over whats being rendered which would allow for simpler A/B testing.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by alexbishop

This document is pretty comprehensive in terms of the general approach to SPA client-side testing with Adobe Target. That documentation is written with reference to the standalone at.js Target library; many customers have migrated to the newer Web SDK, you can find details here of how the key concepts translate from at.js to Web SDK e.g. how the viewName method (which is a central part of an SPA implementation) translates to a property called "viewName" in the Web SDK implementation

1 reply

alexbishop
alexbishopAccepted solution
Employee
December 12, 2023

This document is pretty comprehensive in terms of the general approach to SPA client-side testing with Adobe Target. That documentation is written with reference to the standalone at.js Target library; many customers have migrated to the newer Web SDK, you can find details here of how the key concepts translate from at.js to Web SDK e.g. how the viewName method (which is a central part of an SPA implementation) translates to a property called "viewName" in the Web SDK implementation