Client-side DIL implementation
If you use this method to get Adobe Analytics data into AAM, you have two hits coming from your Web pages: One going to Analytics, and one going to AAM (after having copied the Analytics data on the Web page. Segments are returned from AAM to the page, where they can be used for personalization, and so on. This is considered a legacy implementation and is no longer recommended.
Beyond the fact that this is not following best practices, the disadvantages of using this method include:
- Two hits coming from the page instead of just one
- server-side forwarding is required for real-time sharing of AAM audiences to Analytics, so client-side implementations do not allow for this feature (and potentially other features in the future)
It is recommended that you move to a server-side forwarding method of AAM implementation.
Server-side forwarding implementation
As shown in the image above, a hit comes from the Web page to Adobe Analytics. Analytics then forwards that data to AAM in real time, and visitors are evaluated into AAM traits and segments, just as if the hit had come directly from the page.
Segments are returned on the same real-time hit back to Analytics, which forwards the response on to the Web page for personalization, and so on.
There is no timing downside to moving to Server-Side Forwarding. Adobe highly recommends that anyone who has both Audience Manager and Analytics uses this implementation method.
You have two main tasks
There is quite a bit of info on this page, and it is all important, of course. However, it all boils down to two main things that you need to do:
- Change your code from client-side DIL code to server-side forwarding code
- Flip the switch in the Analytics Admin Console to start the actual forwarding of data (per report suite)
If you skip either of these tasks, server-side forwarding will not work correctly. Steps and additional data have been added to this document to help you do these two steps correctly for your setup.
Implementation options
As you move from client-side to server-side forwarding, one of the tasks you will have is changing the code to the new server-side forwarding code. This is done using one of the following options:
- Adobe Experience Platform tags - Adobe’s recommended implementation option for Web properties. You’ll see that this is an easy task, as Platform tags has done all of the hard work for you.
- On the page - You can also place the new SSF code directly into the
doPlugins
function inside of yourappMeasurement.js
file, if you are not (yet) using Adobe Launch - Other tag managers - These can be treated just like the previous (On the page) option, as you will still put the SSF code in
doPlugins
, wherever the other tag manager is storing the AppMeasurement code
We’ll look at each of these below in the Updating the code section.