at.js download script | Community
Skip to main content
Michael_Soprano
Level 10
March 16, 2025
Question

at.js download script

  • March 16, 2025
  • 2 replies
  • 512 views

According to this implementation pattern: https://experienceleague.adobe.com/en/docs/target-dev/developer/client-side/at-js-implementation/deploy-at-js/implement-target-without-a-tag-manager

Does I need to wrap at.js code like that? Could somebody explain me this in detail?

<script src="at.js">

</script>

2 replies

Adobe Employee
March 16, 2025

There are two ways to implement via at.js

 

1) Without tag:

 

Go to Administration -> Implementation and download the at.js library 

 

In your frontend code place this file in the public directory, in your index.html page(i am assuming you are working with React, but the method is similar in other frameworks as well) call the at.js library like <script src="public/path_to_downloaded_file"></script>

 

2) Implement via launch 

 

1) Create a tag

2) Fire the load target rule

3) Run a build 

4) Copy the script tag from Environment. 

5) Paste it in your frontend code, i.e., index.html file.

 

Do let me know if you have some questions

 

Thank you! 

Sarthak Bhatt | Senior Product Consultant | Customer Experience | Adobe  

 

 

RiteshY18
Community Advisor
Community Advisor
March 17, 2025

@michael_soprano  

at.js should be implemented in the <head> element of every page of your website as  external JS [not inline to ur code] if you are not using Launch and keep this priority order second if you are using datalayer

 

 <!--Target's JavaScript SDK, at.js-->
    <script src="at.js"></script>
    <!--/at.js--