<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Data Element is not populating values from Adobe Client Data Layer in Adobe Experience Platform Launch Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/data-element-is-not-populating-values-from-adobe-client-data/m-p/451320#M3939</link>
    <description>&lt;P&gt;Are you pushing event.message.eventInfo into adobeDataLayer again?&lt;/P&gt;&lt;P&gt;Can you share your action's complete code?&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2022 10:16:43 GMT</pubDate>
    <dc:creator>yuhuisg</dc:creator>
    <dc:date>2022-05-10T10:16:43Z</dc:date>
    <item>
      <title>Data Element is not populating values from Adobe Client Data Layer</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/data-element-is-not-populating-values-from-adobe-client-data/m-p/451164#M3936</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Adobe Client Data Layer provided by AEM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Created a Rule name "General Page Load" in Data Collection Platform and added the below Javascript code under "Event"&lt;/P&gt;&lt;PRE&gt;var pageShownEventHandler = function(evt) {
   // defensive coding to avoid a null pointer exception
   if(evt.hasOwnProperty("eventInfo") &amp;amp;&amp;amp; evt.eventInfo.hasOwnProperty("path")) {
      //trigger Launch Rule and pass event
      console.debug("cmp:show event: " + evt.eventInfo.path);
      var event = {
         //include the path of the component that triggered the event
         path: evt.eventInfo.path,
         //get the state of the component that triggered the event
         component: window.adobeDataLayer.getState(evt.eventInfo.path)
      };

      //Trigger the Launch Rule, passing in the new `event` object
      // the `event` obj can now be referenced by the reserved name `event` by other Launch data elements
      // i.e `event.component['someKey']`
      trigger(event);
   }
}

//set the namespace to avoid a potential race condition
window.adobeDataLayer = window.adobeDataLayer || [];
//push the event listener for cmp:show into the data layer
window.adobeDataLayer.push(function (dl) {
   //add event listener for `cmp:show` and callback to the `pageShownEventHandler` function
   dl.addEventListener("cmp:show", pageShownEventHandler);
});&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after adding this created a data element using the custom code&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if(event &amp;amp;&amp;amp; event. Component &amp;amp;&amp;amp; event.component.hasOwnProperty('@type')) {
    return event. Component['@type'];
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the event object is coming as undefined when we executed this rule. And I am not able to get the expected values also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help us in resolving this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://experienceleague.adobe.com/docs/experience-manager-learn/sites/integrations/analytics/collect-data-analytics.html?lang=en" target="_blank" rel="noopener"&gt;https://experienceleague.adobe.com/docs/experience-manager-learn/sites/integrations/analytics/collect-data-analytics.html?lang=en&lt;/A&gt;&amp;nbsp;- Referred this link for above implementation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chandru A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 12:06:13 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/data-element-is-not-populating-values-from-adobe-client-data/m-p/451164#M3936</guid>
      <dc:creator>SkyGazer</dc:creator>
      <dc:date>2022-05-09T12:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Data Element is not populating values from Adobe Client Data Layer</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/data-element-is-not-populating-values-from-adobe-client-data/m-p/451199#M3937</link>
      <description>&lt;P&gt;I suggest doing the following in Adobe Launch instead:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Install the Adobe Client Data Layer extension.&lt;/LI&gt;&lt;LI&gt;Create a Constant data element (from the Core extension) and specify the value "%event.message.eventInfo%". This will be used to read from the "eventInfo" object that AEM pushes into adobeDataLayer.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yuhuisg_1-1652108958917.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/40812i2261A47DEBE962E6/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="yuhuisg_1-1652108958917.png" alt="yuhuisg_1-1652108958917.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;In your Rule:&lt;OL&gt;&lt;LI&gt;Add the ACDL extension's Data Pushed event. Select "Specific event" and enter "cmp:show".&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yuhuisg_0-1652108448185.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/40811i7FC958C513465FB1/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="yuhuisg_0-1652108448185.png" alt="yuhuisg_0-1652108448185.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;To use the values that AEM pushes into adobeDataLayer, make use of the data element created in step 2. E.g. if you need to use "event.eventInfo.path", then you specify "%event.message.eventInfo%.path" or _satellite.getVar("event.message.eventInfo", event).path&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yuhuisg_2-1652109170976.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/40813i592723363C9E416D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="yuhuisg_2-1652109170976.png" alt="yuhuisg_2-1652109170976.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;(When "event.eventInfo...." is pushed into adobeDataLayer, it gets "captured" in Adobe Launch's native event object as "event.&lt;STRONG&gt;message&lt;/STRONG&gt;.eventInfo....". So the data element created at step 2 helps you to retrieve this.)&lt;/P&gt;&lt;P&gt;I find this setup to be more intuitive because:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It doesn't rely on any code like what the docs suggest.&lt;/LI&gt;&lt;LI&gt;It is in line with how Adobe Launch is supposed to be used -- with as little coding as possible.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope that works for you!&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://experienceleaguecommunities.adobe.com/html/@6FE30242136F1A50ACEEC878CD927A61/emoticons/1f600.png" alt=":grinning_face:" title=":grinning_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 15:15:46 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/data-element-is-not-populating-values-from-adobe-client-data/m-p/451199#M3937</guid>
      <dc:creator>yuhuisg</dc:creator>
      <dc:date>2022-05-09T15:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data Element is not populating values from Adobe Client Data Layer</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/data-element-is-not-populating-values-from-adobe-client-data/m-p/451274#M3938</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17380119"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the steps which u mentioned, but getting the below error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VM460:1 &lt;img class="lia-deferred-image lia-image-emoji" src="https://experienceleaguecommunities.adobe.com/html/@CF5DC1F00FA6BA1C2D78A8EFC47DC28F/emoticons/1f680.png" alt=":rocket:" title=":rocket:" /&gt; Data element circular reference detected: event.message.eventInfo -&amp;gt; event.message.eventInfo -&amp;gt; event.message.eventInfo -&amp;gt; event.message.eventInfo -&amp;gt; event.message.eventInfo -&amp;gt; event.message.eventInfo -&amp;gt; event.message.eventInfo -&amp;gt; event.message.eventInfo -&amp;gt; event.message.eventInfo -&amp;gt; event.message.eventInfo -&amp;gt; event.message.eventInfo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anything we missed out in the implementation ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chandru A&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 06:00:44 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/data-element-is-not-populating-values-from-adobe-client-data/m-p/451274#M3938</guid>
      <dc:creator>SkyGazer</dc:creator>
      <dc:date>2022-05-10T06:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data Element is not populating values from Adobe Client Data Layer</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/data-element-is-not-populating-values-from-adobe-client-data/m-p/451320#M3939</link>
      <description>&lt;P&gt;Are you pushing event.message.eventInfo into adobeDataLayer again?&lt;/P&gt;&lt;P&gt;Can you share your action's complete code?&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 10:16:43 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/data-element-is-not-populating-values-from-adobe-client-data/m-p/451320#M3939</guid>
      <dc:creator>yuhuisg</dc:creator>
      <dc:date>2022-05-10T10:16:43Z</dc:date>
    </item>
  </channel>
</rss>

