at.js functions
- Topics:
- at.js
CREATED FOR:
- Developer
List of functions that can be used with the Adobe Target at.js JavaScript library. Click the links in the Function column for more information and examples.
Function | Details |
---|---|
adobe.target.getOffer(options) | This function fires a request to get a Target offer. Use with adobe.target.applyOffer() to process the response or use your own success handling. |
adobe.target.getOffers(options) (at.js 2.x) |
This function lets you retrieve multiple offers by passing in multiple mboxes. Additionally, multiple offers can be retrieved for all views in active activities. Note: This function was introduced with at.js 2.x. This function is not available for at.js version 1.x. |
adobe.target.applyOffer(options) | This function is for applying the response content. |
adobe.target.applyOffers(options) (at.js 2.x) |
This function lets you apply more than one offer that was retrieved by adobe.target.getOffers(). Note: This function was introduced with at.js 2.x. This function is not available for at.js version 1.x. |
adobe.target.triggerView (viewName, options) (at.js 2.x) |
This function can be called whenever a new page is loaded or when a component on a page is re-rendered. This function should be implemented for single page applications (SPAs) in order to use the Visual Experience Composer (VEC) to create A/B Test and Experience Targeting (XT) activities. |
adobe.target.trackEvent(options) | This function fires a request to report user actions, such as clicks and conversions. It does not deliver activities in the response. |
(at.js 1.x) |
Executes a request and applies the offer to the closest DIV with mboxDefault class name. Note: This function is available for at.js versions 1.x only. This function was deprecated with the release of at.js 2.x. This function returns default content if used with at.js 2.x. |
mboxDefine(options) and mboxUpdate(options) (at.js 1.x) |
Define and update an mbox. Note: This function is available for at.js versions 1.x only. This function was deprecated with the release of at.js 2.x. This function returns default content if used with at.js 2.x. |
targetGlobalSettings(options) |
You can override settings in the at.js library using
|
targetPageParams(options) | This method allows you to attach parameters to the global mbox from outside of the request code. |
targetPageParamsAll(options) | This method allows you to attach parameters to all mboxes from outside of the request code. |
(at.js 1.x) |
Provides a standard way to register a specific extension. Note: This function is available for at.js versions 1.x only. This function was deprecated with the release of at.js 2.x. This function returns default content if used with at.js 2.x. |
at.js custom events | at.js custom events let you know when an mbox request or offer fails or succeeds. |
adobe.target.sendNotifications(options) (at.js 2.1.0) |
This function sends a notification to Target edge when an experience is rendered without using Note: This function has been introduced in at.js 2.1.0 and will be available for any versions above 2.1.0. |
Target
- Adobe Target Developer Guide
- Getting started
- Before you implement
- Privacy and security
- Privacy overview
- Privacy and data protection regulations
- Target cookies
- Delete the Target cookie
- The impact of third-party cookie deprecation on Target (at.js)
- Google Chrome SameSite cookie policies
- Apple Intelligent Tracking Prevention (ITP) 2.x
- Content Security Policy (CSP) directives
- Allowlist Target edge nodes
- Methods to get data into Target
- Target security overview
- Supported browsers
- TLS (Transport Layer Security) encryption changes
- CNAME and Adobe Target
- Client-side implementation
- Overview: implement Target for client-side web
- Adobe Experience Platform Web SDK implementation overview
- at.js implementation
- at.js overview
- How at.js works
- How to deploy at.js
- On-device decisioning
- at.js functions
- at.js functions overview
- adobe.target.getOffer()
- adobe.target.getOffers() - at.js 2.x
- adobe.target.applyOffer()
- adobe.target.applyOffers() - at.js 2.x
- adobe.target.triggerView() - at.js 2.x
- adobe.target.trackEvent()
- mboxCreate() - at.js 1.x
- targetGlobalSettings()
- mboxDefine() and mboxUpdate() - at.js 1.x
- targetPageParams()
- targetPageParamsAll()
- registerExtension() - at.js 1.x
- sendNotifications() - at.js 2.1
- at.js custom events
- Debug at.js using the Adobe Experience Cloud Debugger
- Use cloud-based instances with Target
- at.js FAQs
- at.js version details
- Upgrading from at.js 1.x to at.js 2.x
- at.js cookies
- User-agent and client hints
- Understand the Global mbox
- Server Side implementation
- Server Side: implement Target overview
- Getting started with Target SDKs
- Sample apps
- Transition from Target legacy APIs to Adobe I/O
- Core principles
- Integration
- On-Device Decisioning
- Node.js SDK Reference
- Java SDK Reference
- .NET SDK Reference
- Python SDK Reference
- Hybrid implementation
- Recommendations implementation
- Mobile app implementation
- Email implementation
- API guides
- Implementation patterns
Personalization & Experiementation Excellence with Recommendations and AI
Adobe Customer Success Webinars
Tuesday, Mar 4, 4:00 PM UTC
Adobe Target innovations, including GenAI, and best practices on AI-powered personalization and experimentation at scale.
RegisterAdobe Target at Summit
Register for these developer sessions:
- Put the Customer at the Center and Build Relationships That Last a Lifetime (attend online)
- Personalization at Scale, with Accuracy: Flexible Identity Graph Management (hands-on lab)
- Soaring Above the Ordinary with End-to-End Omnichannel Personalization
- Implement Adobe Target for Optimal Performance (hands-on lab)
- How T-Mobile Personalizes Customer Experiences with AI Decisioning
Connect with Experience League at Summit!
Get front-row access to top sessions, hands-on activities, and networking—wherever you are!
Learn more