<?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 Shelly Goel on Medium]]></title>
        <description><![CDATA[Stories by Shelly Goel on Medium]]></description>
        <link>https://medium.com/@shelly-goel?source=rss-f8d9bf6038f9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ez3e5ONW23ipqdWm5k49Pw.png</url>
            <title>Stories by Shelly Goel on Medium</title>
            <link>https://medium.com/@shelly-goel?source=rss-f8d9bf6038f9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 22:41:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shelly-goel/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[A Multi-Forked Event Expiration Strategy using DataStream in Adobe Experience Platform]]></title>
            <link>https://medium.com/adobetech/a-multi-forked-event-expiration-strategy-using-datastream-in-adobe-experience-platform-83951ce382b4?source=rss-f8d9bf6038f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/83951ce382b4</guid>
            <category><![CDATA[customer-data-platform]]></category>
            <category><![CDATA[adobe-experience-cloud]]></category>
            <category><![CDATA[adobe-experience-platform]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[adobe]]></category>
            <dc:creator><![CDATA[Shelly Goel]]></dc:creator>
            <pubDate>Thu, 22 Jun 2023 11:16:22 GMT</pubDate>
            <atom:updated>2023-09-16T05:23:43.194Z</atom:updated>
            <content:encoded><![CDATA[<h4>Co-Author: <a href="https://medium.com/u/b4d0bb1585fc">Saswata Ghosh</a>.</h4><p><em>Shelly Goel explains how to configure Adobe Experience Platform Real-Time Customer Data Platform to vary how long you keep certain data.</em></p><p>A common use case when implementing Adobe Experience Platform (AEP) for customers involves onboarding high-frequency data like Web Events.</p><p>Many Platform users have upwards of up to 90% of profiles being populated by behavioral data alone, as opposed to record data.</p><p>Therefore, managing your behavioral data using expiration-rules is critical to ensure compliance within your license entitlements, and to prevent being obsolete for your use cases.</p><p>Customers often associate different weightage and relevance to different <a href="https://experienceleague.adobe.com/docs/experience-platform/xdm/classes/experienceevent.html?lang=en#eventType">event-types</a> and want to assign different expiry durations for them. An example would be if you wished to retain ‘page views’ and ‘product browse’ events for 30 days, but retain ‘purchase’ events for a year.</p><p>This can be achieved in a WebSDK implementation by using two DataStreams pointing to two datasets (purchase vs other events) and assigning different expiry durations to them.</p><p>This blog walks you through an implementation carried out for a leading department store group.</p><h3>About the Automated Event Expiration Process</h3><p>In Adobe Experience Platform, an <a href="https://experienceleague.adobe.com/docs/experience-platform/xdm/classes/experienceevent.html?lang=en#eventType">Experience Event</a> Schema has _id and Timestamp as mandatory fields, which need to be populated during ingestion.</p><p>The timestamp is supposed to hold the actual occurrence time of the event, irrespective of when it was ingested into Adobe Experience Platform. We highly recommend using Event Type as it sets context for the event and is used by many downstream services/apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*7P1p8NaatvSlhZEP" /></figure><p>You can configure ‘expiration’ times for all Experience Events that are ingested into a dataset enabled for <a href="https://experienceleague.adobe.com/docs/experience-platform/profile/home.html?lang=en">Real-Time Customer Profile</a> based on the ‘Timestamp’ attribute.</p><p>This lets you automatically remove data from the <a href="https://experienceleague.adobe.com/docs/experience-platform/profile/home.html?lang=en#profile-data-store">Profile Store</a> that is no longer valid or useful for your use cases.</p><p><a href="https://experienceleague.adobe.com/docs/experience-platform/profile/event-expirations.html?lang=en">Experience Event expirations</a> (formerly known as ‘TTL’ — Time to Live) cannot be configured through the Platform UI or APIs. Instead, you must contact Adobe Support to enable <a href="https://experienceleague.adobe.com/docs/experience-platform/profile/event-expirations.html?lang=en">Experience Event expirations</a> on your required datasets.</p><p>Once applied, any event data that is older than the number of days allotted by the ‘expiration’ is permanently deleted from Unified Profile Store. As an added benefit, any anonymous profile for which all events have expired also gets purged from the profile store.</p><h3>Here’s a real world example</h3><p>Our customer is one of the biggest department store groups in Europe. Recently they replaced Salesforce DMP with the Adobe Experience Platform Real-Time Customer Data Platform for their segmentation and activation use cases.</p><p>The customer also migrated from Google Analytics by implementing WebSDK for their website using Google Tag Manager.</p><p>During the discussion for data retention best practices, we advised execution of ‘<a href="https://experienceleague.adobe.com/docs/experience-platform/profile/event-expirations.html?lang=en"><strong>Experience Event Expiration</strong></a>’ on their Web Events dataset to streamline their addressable audience and profile richness within license limits.</p><p>In response, they made the point that different Web Events have different relevance and data-retention requirements due to their varying use cases.</p><p>For example, keeping Purchase Events Data for as long as a year is valuable to them because it helps them re-target customers who made a purchase during a previous annual event, such as last Christmas or Thanksgiving.</p><p>For other high-frequency web events like page views or product browsing, they agreed to a lower data retention (TTL: time to live) of 30 days.</p><p>However, we had to ensure that the custom solution should not increase their server calls.</p><h3>A solution for the multi-forked event expiration strategy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/0*oqGTHhccyKxlUj4m" /></figure><p>Based on the above high-level design, this lightweight solution has three key components:</p><p>1: Two different datasets referencing the same AEP WebSDK schema. This allows the fragments across datasets to be brought together using the Real-time Customer Profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/0*j_mZbiJG1988Es4t" /></figure><p>2: Two different DataStreams pointing to their respective AEP profile-enabled datasets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*yFmCujpEMBuuFMye" /></figure><p>3: Custom code in the processing layer which dynamically forks purchase events vs. other events to their respective datastream_id.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*Yu4jXj3AoQdWL1Rw" /></figure><p>One pre-requisite is that the “<strong>page_type</strong>” is captured in customer’s data layer. However, it can be any other criteria/type as per your use-case, which should be readily available in the data layer.</p><h3>An example from Google Tag Manager</h3><p>The following code snippet from the data layer can be embedded on every page, or it can be placed in some common location so that it is called on every page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/0*KXjhj1VuDGCgeXzZ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/0*GqlUxiZklEOZxOET" /></figure><h3>An alternative approach (using <a href="https://experienceleague.adobe.com/docs/experience-platform/tags/home.html?lang=en">Tags/Launch</a>)</h3><p>Create a Data Element to hold the relevant DataStream ID based upon the ‘<strong>pageType</strong>’, as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/0*YCCBU1XZrOnxOZOL" /></figure><p>In this way, the events from ‘purchase’ pageType will be redirected to ‘purchase’ dataset via the ‘purchase’ DataStream, which we had configured earlier.</p><p>Similarly, the ‘default’ clause will direct events from other pages to the other ‘Web Events’ dataset.</p><p>If your customer has a similar requirement, you can utilize this multi-forked DataStream strategy for more than two pageTypes, or introduce other conditions as well.</p><h3>Some things to consider</h3><ol><li>Adobe has released a new feature called <a href="https://experienceleague.adobe.com/docs/experience-platform/profile/pseudonymous-profiles.html">Pseudonymous profiles data expiration</a> which is applicable for Production sandbox only, and complements the granular ‘dataset-level’ event expiration discussed in this article. Unlike this use case for known customers, it is targeted at purging pseudonymous users based on ECID, GAID, or AAID.</li><li>This strategy for multiple event datasets should be applied in moderation as there is a soft <a href="https://experienceleague.adobe.com/docs/experience-platform/profile/guardrails.html?lang=en#primary-entity-guardrails">guardrail</a> of 20 datasets that leverage the <a href="https://experienceleague.adobe.com/docs/experience-platform/xdm/classes/experienceevent.html?lang=en#eventType">XDM ExperienceEvent class</a>.</li><li>Segmentation logic needs to be validated before and after applying the TTL as different TTL on different datasets can introduce inaccuracies in segment lookback windows &gt;TTL duration.</li><li>The Experience Event TTL is set at dataset-level by Engineering team and is resource-intensive. Also, there is no monitoring UI for the system job. Too many datasets with different TTLs may lead to multiple TTL jobs running together with possible conflicts and failure without alerts.</li><li>Multiple Experience Event Datasets can increase the complexity of SQL queries requiring to join multiple tables for some <a href="https://experienceleague.adobe.com/docs/experience-platform/query/use-cases/abandoned-browse.html?lang=en">Data Distiller use cases</a>.</li><li>Experience Event expiration removes events permanently only from the Unified Profile Store (UPS) and neither the data lake nor the Identity graph (UIS). When all Experience Events have been removed, if the profile no longer has any profile attributes, the profile will no longer exist.</li></ol><h3>Three Key Benefits</h3><p>This approach is useful for three reasons:</p><ol><li><strong>Simplicity:</strong> The strategy of forking events (row-level) to multiple datasets can be based upon any condition (ie. data layer variable/event) as per the use case, using simple if-else code.</li><li><strong>Flexibility:</strong> A DataStream can be created in advance (without dataset) and its ID referred to in the processing rule. This allows for parallel development and deletion of old datasets, as well as the linking of new ones to a DataStream without dependency.</li><li><strong>Cost Savings &amp; Durability: </strong>The Event Expiration set on dataset purges historical events daily, ensuring that existing profiles stay within the <a href="https://experienceleague.adobe.com/docs/experience-platform/profile/guardrails.html">5000 events guardrail</a> and new anonymous profiles get purged from the system beyond their usefulness/expiry period. This also helps customers stay within profile license limits over a longer term and saves on license cost.</li></ol><h3>Some related links</h3><p>If you want to explore this in more depth, here are some resources that may be useful:</p><ul><li><a href="https://experienceleague.adobe.com/docs/experience-platform/landing/license/data-management-best-practices.html?lang=en#what-data-to-keep%3F">License Entitlement Best Practices</a></li><li><a href="https://experienceleague.adobe.com/docs/experience-platform/profile/event-expirations.html?lang=en">Experience Event Expirations</a></li><li><a href="https://experienceleague.adobe.com/docs/experience-platform/edge/datastreams/configure.html?lang=en">Datastreams- Server Side configuration of AEP WEBSDK</a></li><li><a href="https://experienceleague.adobe.com/docs/experience-platform/edge/datastreams/overrides.html?lang=en">Configure datastream overrides</a></li><li><a href="https://business.adobe.com/products/experience-platform/real-time-customer-profile.html">Real Time Customer Profile</a></li><li><a href="https://experienceleague.adobe.com/docs/experience-platform/profile/guardrails.html?lang=en">Default Guardrails for Real-Time Customer Profile Data</a></li><li><a href="https://business.adobe.com/customers/consulting-services/main.html">Adobe Consulting Services</a></li><li><a href="https://business.adobe.com/request-consultation/experience-cloud.html">Contact Us</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83951ce382b4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adobetech/a-multi-forked-event-expiration-strategy-using-datastream-in-adobe-experience-platform-83951ce382b4">A Multi-Forked Event Expiration Strategy using DataStream in Adobe Experience Platform</a> was originally published in <a href="https://medium.com/adobetech">Adobe Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>