<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rajdeep Singh on Medium]]></title>
        <description><![CDATA[Stories by Rajdeep Singh on Medium]]></description>
        <link>https://medium.com/@rajd33p?source=rss-69bd01d0a88b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*s1DKA5glUixvQEhyfehh6Q.jpeg</url>
            <title>Stories by Rajdeep Singh on Medium</title>
            <link>https://medium.com/@rajd33p?source=rss-69bd01d0a88b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:48:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rajd33p/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Web SDK data:{__adobe:{ }} approach: The best way to collect data in Adobe Analytics.]]></title>
            <link>https://medium.com/@rajd33p/web-sdk-for-adobe-analytics-the-best-possible-way-to-collect-data-6a54a965fe54?source=rss-69bd01d0a88b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a54a965fe54</guid>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[adobe-experience-platform]]></category>
            <category><![CDATA[adobe-analytics]]></category>
            <category><![CDATA[adobe]]></category>
            <category><![CDATA[marketing-technology]]></category>
            <dc:creator><![CDATA[Rajdeep Singh]]></dc:creator>
            <pubDate>Wed, 04 Sep 2024 03:00:06 GMT</pubDate>
            <atom:updated>2024-09-04T21:04:41.255Z</atom:updated>
            <content:encoded><![CDATA[<p>As of today, there are three possible ways to send data to Adobe Analytics using the AEP Web SDK (alloy.js):</p><p><strong>Approach #1 - Analytics Processing Rules: <br></strong>Web SDK send requests with a payload that may or may not conform to a specific schema. The Edge Network forwards these requests to Adobe Analytics as context data. Once there, Adobe Analytics Processing Rules are used to map these XDM context data points to the appropriate Analytics variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JIBzCJtsVKjXrArkV-6TBA.jpeg" /></figure><p>To be very frank, this method is bad. It is highly inefficient and not worth considering. We can safely disregard this approach, as its drawbacks far outweigh any potential benefits, making it unworthy of our time and analysis.</p><p><strong>Approach #2 - “Adobe Analytics Experience Event” Field Group: <br></strong>With this, the request’s payload strictly follows a pre-defined XDM schema that contains the AA Experience Event field group. When this field group is in place, a mapping logic also kicks in that <a href="https://experienceleague.adobe.com/en/docs/analytics/implementation/aep-edge/xdm-var-mapping">automatically map</a> xdm fields with Adobe Analytics vars.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iB2DrH1hT4YHIDQUTVIgzw.jpeg" /></figure><p>This approach offers several advantages, particularly with its built-in auto-mapping feature that seamlessly aligns XDM fields with Adobe Analytics variables. However, it does come with some notable drawbacks:</p><ol><li><strong>Data Duplication</strong>: One major issue is the potential for data duplication within your AEP dataset. This often occurs when the same data point is represented both by a custom field and an unintended eVar/prop. This duplication happens because all eVar/prop fields are nested within the xdm:{} object, and anything included in this object automatically populates the AEP dataset table. To illustrate this, I&#39;ve used the same color to show how identical data can end up in two different columns.</li><li><strong>Complex Implementation</strong>: Another challenge is the complexity of managing the object structure, especially when dealing with deeply nested objects, sometimes reaching six or seven levels deep. Working with list vars, list props, product strings, and merchandising eVars can be overwhelming, even for seasoned experts, and can introduce unnecessary complexity to the implementation. Below is an example of how even a simple payload might end up looking in this scenario.</li></ol><pre>&quot;xdm&quot;:{<br>    &quot;eventType&quot;: &quot;product detail page view&quot;,<br>    &quot;web&quot;: {<br>        &quot;webPageDetail&quot;:{<br>            &quot;page&quot;:&quot;product detail page&quot;<br>        }<br>    },<br>    &quot;device&quot;: {},<br>    &quot;environment&quot;: {},    <br>    &quot;identityMap&quot;: {},<br>    &quot;commerce&quot;: {<br>        &quot;productViews&quot;: {<br>            &quot;value&quot;: 1<br>        }<br>    },<br>    &quot;_experience&quot;: {<br>        &quot;analytics&quot;: {<br>            &quot;event1to100&quot;: {<br>                &quot;event1&quot;:{<br>                    &quot;value&quot;:1<br>                }<br>            },<br>            &quot;customDimensions&quot;: {<br>                &quot;eVars&quot;: {<br>                    &quot;eVar1&quot;:&quot;shoes&quot;,<br>                    &quot;eVar2&quot;:&quot;product&quot;,<br>                    &quot;eVar3&quot;:&quot;abc.com&quot;<br>                }<br>            },<br>            &quot;lists&quot;:{<br>                &quot;list1&quot;: {<br>                    &quot;list&quot;: [{<br>                            &quot;value&quot;: &quot;gender:men&quot;<br>                        },<br>                        {<br>                            &quot;value&quot;: &quot;color:black,brown&quot;<br>                        },<br>                        {<br>                            &quot;value&quot;: &quot;size:9,10&quot;<br>                    }]<br>                }<br>            }<br>        }<br>    },<br>    &quot;productListItems&quot;: [{<br>        &quot;SKU&quot;: &quot;123&quot;,<br>        &quot;_experience&quot;: {<br>            &quot;analytics&quot;: {<br>                &quot;customDimensions&quot;: {<br>                    &quot;eVars&quot;: {<br>                        &quot;eVar5&quot;: &quot;formal shoes&quot;<br>                    }<br>                }<br>            }<br>        }<br>    }]<br>}</pre><p><strong>Approach #3 - Utilizing the new</strong><strong>data:{__adobe:{}}object: <br></strong>This is the best approach so far to send data to Analytics via Web SDK. In this approach, the request payload includes a data: {__adobe:{}}} object alongside the xdm: {} schema. Similar to approach #2, this method leverages a mapping logic that resides at the edge network, automatically linking all the relevant fields from the data: {} object to Adobe Analytics variables. While this may initially seem quite similar to approach #2, it boasts several significant advantages that clearly set it apart, making it the superior choice for data collection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*futgmGUlISzzGlEju_bEQw.jpeg" /></figure><p>Here are some of its advantages:</p><ol><li>the xdm:{} data lands directly in AEP, while the data:{} object is routed to other destinations. This clever separation ensures there&#39;s no data duplication within your AEP datasets. This is a huge advantage, as it eliminates the clutter of unnecessary eVars and props in Adobe Experience Platform (AEP).</li><li>Another big advantage of this setup is that the entire implementation and payload become flatter and simpler, resembling the structure familiar to appMeasurement users. This simplicity makes Web SDK implementations straightforward, whether you’re starting fresh or migrating from an existing appMeasurement setup. <br>With this approach, the same payload we discussed in the approach #2 (which looks ridiculous) will end up looking something very simple like this:</li></ol><pre>&quot;data&quot;:{<br>    &quot;__adobe&quot;:{<br>        &quot;analytics&quot;:{<br>            &quot;pageName&quot;:&quot;product detail page&quot;<br>            &quot;eVar1&quot;:&quot;shoes&quot;,<br>            &quot;eVar2&quot;:&quot;product&quot;,<br>            &quot;eVar3&quot;:&quot;abc.com&quot;,<br>            &quot;list1&quot;:&quot;gender:men|color:black,brown|size:9,10&quot;,<br>            &quot;products&quot;:&quot;;sku;;;eVar5=formal shoes&quot;,<br>            &quot;events&quot;:&quot;event1,prodView&quot;<br>        }<br>    }<br>}</pre><p>Isn’t that just magical? It is.</p><p>Here is the link to the Adobe doc that <a href="https://experienceleague.adobe.com/en/docs/analytics/implementation/aep-edge/data-var-mapping">list all data object variables</a> that the AEP Edge Network automatically maps into Adobe Analytics.</p><p>Let’s deep dive a little more into this approach with a <strong>use case</strong> where you want to collect users’ behavioral data for a web app, both in Adobe Analytics as well as in Experience Platform (AEP) for Activation, Profiling and Analysis.</p><blockquote>Note: You can ignore the AEP configs. and xdm:{} portion from the below steps if you are not going to send data to AEP.</blockquote><p>To start, you’ll need to design a schema for AEP. You can either use Adobe’s standard field groups or create custom ones. I typically recommend creating custom field groups, as they can right fit as per the need and be reused across your org, providing flexibility and consistency. Since we are going to utilize the new data:{} approach, you don&#39;t need to consider Adobe Analytics during the schema design phase. This also eliminates the need to use the Adobe Analytics Experience Event field group.</p><p>Once the schema is established, the next step is to add AEP and Adobe Analytics as services in your data stream.</p><p>Now, in Adobe Tags (Launch), it&#39;s essential to properly configure data elements, rules, and other settings to ensure that the Web SDK sends requests accurately with the correct payload.</p><p><strong>Step 1: Configure Data Elements: </strong>You’ll need to create two distinct data elements of AEP Web SDK Variable type. First, a data element with the <strong>XDM</strong> variable type. Next, create another data element, but this time choose the <strong>Data</strong> variable type. By using these two types of data elements, you can effectively manage and utilize both xdm:{} and data:{} objects within your AEP Web SDK requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J7_BCqabAMIscIDXXJhc0Q.png" /></figure><p><strong>Step 2: Configure Rules: </strong>To send a Web SDK request that includes both xdm:{} and data:{} objects, you&#39;ll need to configure a rule in Adobe Tags with the following actions:<br>1. Declare the xdm:{} object and populate all its properties.<br>2. Declare thedata:{} object and populate all its properties.<br>3. Combine the xdm:{} and data:{} objects and send the event to the Adobe Edge network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J24_B4EvQ8VCUQERAK5VZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7nHv2P6QNh6KdOxTHEZPVw.png" /></figure><p><strong>Step 3: Migrate Custom Code: </strong>Another key benefits of adopting the data:{__adobe:{analytics:{}}} approach is the ease it brings to migrating custom code from AppMeasurement to the Web SDK. As highlighted in Action 2 of the screenshot above, there is a custom code snippet at the bottom. By inserting just a few lines of code at the top, you can seamlessly copy and paste your existing custom code with minimal changes. This significantly simplifies the migration process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_moaX9fCQyR-eSCGShxuA.png" /></figure><p>In the same way, you can easily migrate the doPlugin(){} code from the Analytics extension to the &quot;On Before Event Send Callback&quot; section within the Web SDK extension.</p><p>Once you’ve correctly completed all the configurations, here’s what your Web SDK request payload will look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xVrgxfBBujvwwlokxZp3vQ.png" /></figure><p>There’s a perspective that suggests simplifying the setup by defining only the data:{} object on the client side, and then mapping its properties to the xdm:{} object within the data stream using Data Prep. While this might seem convenient, I personally find this approach limiting for a few reasons:</p><ol><li>You might need to track additional data points that aren’t typically collected in Adobe Analytics.</li><li>Adobe Analytics variables are inherently designed to hold only string values. In contrast, fields in Adobe Experience Platform (AEP) are expected to support a variety of data types, including arrays, objects, and floats, for various use cases. Converting strings into these data types or applying transformations to convert strings into arrays or objects can be quite challenging in Data Prep.</li><li>I find it challenging to manage configurations in two separate locations, such as Tags and Data Prep. This not only adds unnecessary complexity and confusion but also reduces scalability and makes debugging a much more difficult task.</li></ol><p>Phewwww! This has been quite the marathon of a post. But before we wrap it up, let me share a few lessons I have learned while implementing this approach.</p><p>No doubt withdata:{__adobe:{}} approach, Adobe tried its best to closely mirror the Adobe Analytics implementation experience within Web SDK to what you&#39;re accustomed to with AppMeasurement. However, there are a few nuances where the functionality doesn&#39;t perfectly align with how it operated in AppMeasurement.</p><ul><li>The s.linkTrackVars and s.linkTrackEvents no longer exist in the Web SDK. You don’t need to declare your click variables and events in these variables anymore.</li><li>If you’re using plugins from AppMeasurement, be aware they may not function as expected with the Web SDK. You’ll need to either modify the code accordingly or utilize the Common Web SDK Plugins extension for supported plugins.</li><li>The functions s.t() and s.tl() are still not available in Web SDK. Instead, the SDK automatically determines whether a hit is a page view or non-page view based on the same logic as before.</li><li>If there’s a conflict between xdm:{} and data:{}, such as xdm.web.webPageDetail.name and data.__adobe.analytics.pageName, the properties from data:{} will take precedence.</li></ul><p>To wrap things up, the new data:{} approach in AEP Web SDK provides exceptional flexibility and efficiency, making it an essential tool for Adobe Analytics data collection. <br>If you have any questions or need consulting support, feel free to connect with me on <a href="https://www.linkedin.com/in/rajd33p/">LinkedIn</a> — I’d be glad to help you navigate this powerful solution.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a54a965fe54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adobe Analytics to Adobe Experience Platform: Your Next Best Steps for Data collection]]></title>
            <link>https://medium.com/@rajd33p/adobe-analytics-to-adobe-experience-platform-your-guide-to-the-next-best-steps-05a5fe5b7e75?source=rss-69bd01d0a88b------2</link>
            <guid isPermaLink="false">https://medium.com/p/05a5fe5b7e75</guid>
            <category><![CDATA[customer-experience]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[customer-data-platform]]></category>
            <category><![CDATA[adobe-analytics]]></category>
            <category><![CDATA[adobe-experience-platform]]></category>
            <dc:creator><![CDATA[Rajdeep Singh]]></dc:creator>
            <pubDate>Fri, 23 Aug 2024 22:14:09 GMT</pubDate>
            <atom:updated>2024-09-04T15:23:57.181Z</atom:updated>
            <content:encoded><![CDATA[<p>Adobe Experience Platform (AEP) has emerged as a game-changer for marketers, offering real-time profiles, seamless integration across Adobe tools, and the ability to deliver personalized experiences at scale. Its advanced capabilities make it an essential consideration for anyone invested in the Adobe stack. Given this, you’re likely either planning your migration to AEP or may have already begun the journey.</p><p>So, the next big question is: what exactly are you migrating, and how do you plan to do it?</p><ul><li>Are you moving from Adobe Analytics to AEP?</li><li>And when you say AEP, are you referring to Real-Time CDP or Customer Journey Analytics (CJA)?</li><li>Are you switching from appMeasurement to Web SDK, or just planning to use the Analytics source connector?</li><li>What schema strategy you planning to adopt when using Web SDK?</li></ul><p>It can get pretty confusing, right? I totally get it.</p><p>To help clear things up, I’ve created a flow chart that will guide you through the migration process, showing you where you currently stand and what your next best steps should be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xnYsQFM_LolxWcE_env4ZQ.jpeg" /><figcaption>AEP Data Collection: Your Next Best Steps</figcaption></figure><p>It’s important to remember that each use-case/situation mentioned above can be solved in multiple ways, depending on individual preferences, styles, goals and the existing set-up. However, I have aimed to provide the best possible recommendations that aren’t just robust and minimal but also futuristic and got latest/greatest features.</p><ul><li><strong>Use Case 1 - RTCDP + CJA:</strong> This is straight forward since you are adopting AEP as a clean slate. When designing data collection for AEP alone, it’s best to come up with your own custom field groups. <br>You can also utilize some of the standard field groups from Adobe along with your custom ones, if you found them valuable and apt.</li></ul><pre>&quot;xdm&quot;:{<br>    &quot;_tenant&quot;:{                     // custom field groups inside your tenant<br>        &quot;customer&quot;:{},<br>        &quot;internalSearch&quot;:{},<br>        &quot;consent&quot;:{},<br>        &quot;global&quot;:{<br>            &quot;page&quot;:{},<br>            &quot;link&quot;:{}<br>        },<br>        &quot;media&quot;:{}<br>    },<br>    &quot;web&quot;:{},                       // Adobe&#39;s standard field groups<br>    &quot;commerce&quot;:{}<br>}</pre><ul><li><strong>Use Case 2 - RTCDP + Adobe Analytics: </strong>If you’re looking to send data to both Adobe Analytics and RT-CDP simultaneously, using the AEP SDK is the obvious choice. There are a few methods to achieve this, such as:<br> &gt; Leveraging the “Adobe Analytics Experience Event” field group for auto-mapping.<br> &gt; Using “Adobe Analytics’ processing rules” to map schema fields to Analytics variables.<br>However, the best approach, in my opinion, is to use both xdm:{} and data:{__adobe:{analytics:{}}} objects together. This allows you to send data to AEP and Analytics seamlessly. Here are some advantages of this method:<br>1. Data points inside data:{__adobe:{}} object do not land in AEP automatically, preventing duplication of your custom and analytics fields.<br>2. Using data:{__adobe:{}} keeps you within the familiar Adobe Analytics syntax, like s.eVar and s.prop, making it much easier to work with compared to xdm:{}.<br>3. Debugging is simpler with this approach — you don’t have to use AEP Assurance all the time.<br>4. You can easily transfer your existing custom code with a simple copy and paste.<br>I̶ ̶t̶h̶i̶n̶k̶ ̶I̶’̶l̶l̶ ̶w̶r̶i̶t̶e̶ ̶a̶n̶o̶t̶h̶e̶r̶ ̶b̶l̶o̶g̶ ̶p̶o̶s̶t̶ ̶t̶o̶ ̶e̶x̶p̶l̶a̶i̶n̶ ̶h̶o̶w̶ ̶t̶h̶i̶s̶ ̶a̶p̶p̶r̶o̶a̶c̶h̶ ̶w̶o̶r̶k̶s̶.̶ ̶F̶o̶r̶ ̶n̶o̶w̶,̶ ̶I̶ ̶w̶o̶u̶l̶d̶ ̶r̶e̶c̶o̶m̶m̶e̶n̶d̶ ̶y̶o̶u̶ ̶c̶h̶e̶c̶k̶ ̶t̶h̶i̶s̶ ̶w̶e̶b̶i̶n̶a̶r̶ ̶b̶y̶ ̶A̶d̶o̶b̶e̶ ̶t̶a̶l̶k̶i̶n̶g̶ ̶a̶b̶o̶u̶t̶ ̶t̶h̶i̶s̶ ̶a̶p̶p̶r̶o̶a̶c̶h̶.̶</li></ul><blockquote>Here is the detailed blog on how exactly this new approach from Adobe works: <a href="https://medium.com/@rajd33p/web-sdk-for-adobe-analytics-the-best-possible-way-to-collect-data-6a54a965fe54">https://medium.com/@rajd33p/web-sdk-for-adobe-analytics-the-best-possible-way-to-collect-data-6a54a965fe54</a></blockquote><pre>{<br>  &quot;xdm&quot;:{                          // this will land in Experience Platform<br>      &quot;_tenant&quot;:{}, <br>      &quot;web&quot;:{}<br>  },<br>  &quot;data&quot;:{<br>      &quot;__adobe&quot;:{                  // this will land in Experience Cloud<br>          &quot;analytics&quot;:{                    // will land in Analytics<br>              &quot;events&quot;: &quot;event1,event4&quot;,<br>              &quot;products&quot;:&quot;;sku123;1;10.99;event1;eVar1=&#39;white shoes&#39;&quot;,<br>              &quot;prop1&quot;:&quot;while&quot;,<br>              &quot;eVar1&quot;:&quot;shoes&quot;<br>          },<br>          &quot;target&quot;:{}                      // will land in Target<br>      }  <br>   }<br>}</pre><ul><li><strong>Use Case 3 - Adobe Analytics (without AEP): </strong>If your goal is to implement tagging solely for Adobe Analytics and there’s no intention of getting an AEP license anytime soon, I’d suggest sticking with appMeasurement for data collection. In my opinion, Web SDK shouldn’t be used just for sending data to Adobe Analytics unless you plan to onboard AEP in the near future.</li><li><strong>Use Case 4 - Keep Adobe Analytics as is &amp; bring AA data into RTCDP (No real-time personalization): </strong>If you’re using appMeasurement to collect data in Adobe Analytics and your main goal is to get that data into AEP for CDP purposes like activation and profiling, then you might not need to change much. As long as you don’t have any real-time personalization use cases to handle with Target, the best approach would be to stick with your current setup. Just use the Adobe Analytics source connector to bring your AA data into the AEP data lakes.</li><li><strong>Use Case 5 - Keep Adobe Analytics &amp; bring AA data into RTCDP (with real-time personalization): </strong>If you’re dealing with real-time personalization use cases through Adobe Target, it’s a good idea to switch from appMeasurement to Web SDK. This way, you can send events to AEP in real time. For this setup, you’ll follow the same schema approach as in Use Case 2 - using both xdm:{} and data:{__adobe:{}} to route data to the right destinations.</li><li><strong>Use Case 6 - Move from AA to CJA: </strong>If you’re planning to switch completely from Adobe Analytics to CJA, the next logical step is to create a cut-off plan for Adobe Analytics. From an implementation perspective, it’s recommended to use client-focused custom field groups, as outlined in Use Case 1.<br>You’ll also need to use the Analytics source connector to import historical data into AEP and, subsequently, into CJA. Additionally, you’ll have to address any existing ETL processes that currently ingest Analytics data feeds. Since there’s no direct equivalent of a data feed in CJA, it’s essential to develop a strategy to streamline all your existing ETL pipelines.</li></ul><p>In conclusion, adopting or transitioning to Adobe Experience Platform (AEP) can be a bit challenging, especially when figuring out the best way to bring data into AEP and choosing the right schema approach, particularly when Adobe Analytics is involved. Using the right strategy is crucial for maintaining a healthy AEP setup. It ensures that data isn’t duplicated, simplifies data collection, minimizes the need for ongoing support, and keeps your solution future-proof.</p><p>If you have any questions or need consulting support, feel free to reach out to me on <a href="https://www.linkedin.com/in/rajd33p/">LinkedIn</a>. I would be more than happy to connect and discuss it further.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05a5fe5b7e75" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>