Understanding How Adobe Target's at.js 2.0 Works
at.js 2.0 enhances Adobe Target's support for single page applications (SPA) and integrates with other Experience Cloud solutions. This video and accompanying diagrams explain how everything comes together.
- Call returns Experience Cloud ID (ECID). If user is authenticated, another call syncs the customer ID.
- at.js library loads synchronously and hides the document body (at.js can also be loaded asynchronously with an optional pre-hiding snippet implemented on the page)
- Page Load request is made including all configured parameters, ECID, SDID and customer ID
- Profile scripts execute and feed into the Profile Store. The Store requests qualified audiences from the Audience Library (e.g. audiences shared from Analytics, Audience Manager, etc). Customer Attributes are sent to Profile Store in a batch process.
- Based on URL, request parameters, and profile data, Target decides which Activities and Experiences to return to the visitor for the current page and future views
- Targeted content sent back to page, optionally including profile values for additional personalization.Targeted content on the current page is revealed as quickly as possible without flicker of default content.Targeted content for future views of a single-page application is cached in the browser, so it can be instantly applied without an additional server call when the views are triggered. (See the next diagram for triggerView() behavior).
- Analytics data sent from the page to the Data Collection Servers
- Target data is matched to Analytics data via the SDID and is processed into the Analytics reporting storage. Analytics data can then be viewed in both Analytics and Target via A4T reports.
- adobe.target.triggerView() is called in the single-page application
- Targeted content for the view is read from the cache
- Targeted content is revealed as quickly as possible without flicker of default content
- Notification request is sent to the Target Profile Store to count the visitor in the activity and increment metrics
- Analytics data is sent from the SPA to the Data Collection Servers
- Target data is sent from the Target backend to the Data Collection Servers. Target data is matched to Analytics data via the SDID and is processed into the Analytics reporting storage. Analytics data can then be viewed in both Analytics and Target via A4T reports.