Adobe Target works by loading an Adobe script to client side browser. This script file name is at.js
. Last day, I had to fix an Adobe Target issue in a production site. I was new to Adobe Target and after reading through the documentation, I came to know that there are two major at.js
version. It can be either v1.x
or v2.x
.
I needed to know which version the site is using. I finally found it and here I am explaining what I did.
When Adobe loads its script, it creates a global adobe
object in the browser.
![Adobe Object](/static/adobe-object-2da67b5bf2fc79970db1705cf198dbc4.png)
The adobe
object contains different services that Adobe provides like target
. Next, print the value of adobe.target.VERSION
. It prints the version of at.js
loaded.
![Adobe Target Version](/static/target-version-2e2027bbf309cb0f4a774b209ca42259.png)