How to use AT.js in already implemented React application | Community
Skip to main content
hariharans94469
Level 2
January 11, 2018
Solved

How to use AT.js in already implemented React application

  • January 11, 2018
  • 2 replies
  • 5487 views

Hi All,

Currently am working in Adobe target which is Targeting the react application. I am using plain javascript to achieve my feature. How can i use the AT.js extension effectively for already implemented Production site.  Is there anyway to write code in react to achieve the feature

Thanks,

Hariharan S

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 HariharanSubra1

on top of the site you cant use the React js implementation via adobe target. But you can use the Adobe target API to check the whhich variant are you in based on that you can process feature in application itself.

2 replies

Amelia_Waliany
Adobe Employee
Adobe Employee
January 23, 2018

Hi Hariharan,

Thanks so much for your question - you may actually find this previous forum thread on Creating Test on pages with React js

helpful, specifically: that according to the Target Product Documentation on at.js Implementation , although at.js communicates with the Target servers asynchronously, the at.js file itself must load synchronously in the <head> section of your page. Ideally, it should be one of the first scripts loaded. Once loaded, at.js executes mbox calls asynchronously through XMLHttpRequest, and does not block page rendering." Hope this is helpful - feel free to reach out here again if you have more questions!

Warmly,

Amelia

HariharanSubra1Accepted solution
Level 2
September 24, 2018

on top of the site you cant use the React js implementation via adobe target. But you can use the Adobe target API to check the whhich variant are you in based on that you can process feature in application itself.