Adobe Target and Analytics in Launch and One network call- AEP SDK | Community
Skip to main content
Level 2
October 25, 2025
Question

Adobe Target and Analytics in Launch and One network call- AEP SDK

  • October 25, 2025
  • 2 replies
  • 1241 views

Hi,

We have launch set up and i want to find out if anyone has integrated analytics and adobe target and  in one network call with AEP sdk alloy JS?

I would like to have analytics tracked and Target reporting work

Multi page application.Thanks

2 replies

MagicStarAuthor
Level 2
October 25, 2025

@bjoern kindly assist

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 26, 2025

Hi @magicstar 

assuming that Björn would be me xD

 

TL;DR; I would opt for a separation of Target and Analytics page views, see reasons below (and bullet points on how to integrate it), and this his how to do it

https://experienceleague.adobe.com/en/docs/platform-learn/implement-web-sdk/applications-setup/setup-target# 

 

-------------

Long version

 

So, in general yes, you can put Target and Analytics data in a single call. That is what alloy / Web SDK has been designed for, forwarding data to the endpoints that have been configured in the datastream. You can add tool-specific context in the data section e.g., data.__adobe.analytics or data.__adobe.target that contains for instance through an XDM data variable.

Bear in mind though that a Target call must execute as early as possible to limit visual impacts / flicker, whereas a page view may be triggered at some later stage. 

 

But - and this may be my personal opinion - you must decide whether you actually want to send Target and Analytics within the same call, especially from a consent perspective. 

 

Yes, it sounds too good to be true, one library to rule them all, but the Adobe tools connected to the datastream may belong to traditionally different cookie consent categories, for instance "Analytics" for AppMeasurement/Adobe Analytics and "Personalization" for at.js/Target.

 

While in theory, AEP and Web SDK only requires the "collect" cookie consent category to work (which I typically tend to map to the classic Performance/Analytics cookie consent category), you could go crazy from that moment, since Adobe Target by itself does no longer write a cookie, and hence no additional cookie consent would be needed.

Call me old fashioned, but I like to interpret a cookie consent banner more like "which categories of tools would you, dear customer, allow me to use".

In other words, I respect the will of the visitor, and if my consent banner shows both analytics and personalization categories, for me that means that if he says no to personalization and yes to analytics, I must make sure Target activities are not triggered.

 

So, in other words, my go-to setup comprises

  • one "library loaded" rule that
    • requires Personalization consent
    • triggers a Target cal, using guided events with "Request personalization" to make sure data is not inadvertedly sent to Analytics
  • one "page view" rule that
    • requires Analytics/Performance consent
    • is typically event-driven and triggered by an event being pushed to my data layer
    • uses guided events with "Collect analytics" to make sure no Target activity get rendered

 

Cheers from Switzerland!
MagicStarAuthor
Level 2
October 29, 2025

Hi @bjoern__koth  the experience on the page did not seem to load while following the two rules

Page top - applied

Page bottom - i have event types - order 50 , at page load - adobe client layer data push

Kindly assist

 

MagicStarAuthor
Level 2
October 29, 2025

Hi @magicstar 

using the guided events, I have not really experienced any issues so far. 

Can you provide screenshots of your version that did not work?