<?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 AEM Targeting on experience fragment in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-targeting-on-experience-fragment/m-p/541715#M134505</link>
    <description>&lt;P&gt;I have tried to use AEM targeting within experience fragment, so I have created audience, segments, activity etc... then I have created Header experience fragment and wanted to reconfigure Navigation component to show different links for anonymous and logged in users.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Targeting mode is available when authoring experience fragments (even in page properties you have got ContextHub configuration), so I thought it will work fine. However when I open the page where this experience fragment is used I see that page enters into the infinite loop and the "current url" is requested by ContextHub instead of url to campaign or experience fragment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have investigated in the page source that default segments got incorrect url:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{"path":"//default","name":"default","title":"Default","campaignName":"","thumbnail":"/.thumb.png","url":"","campaignPriority":0,"tags":[]}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;instead something like this&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{"path":"//default","name":"default","title":"Default","campaignName":"","thumbnail":"/.thumb.png","url":"/_jcr_content/root/container/header/content/experiencefragment.default.html","campaignPriority":0,"tags":[]}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When I use targeting on the page instead of experience fragment everything works fine. ContextHub is serving the correct fragment for resolved segment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do you have any idea how to fix it? or how to force targeting to works correctly on experience fragment?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2022 13:45:52 GMT</pubDate>
    <dc:creator>PiotrR</dc:creator>
    <dc:date>2022-08-19T13:45:52Z</dc:date>
    <item>
      <title>AEM Targeting on experience fragment</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-targeting-on-experience-fragment/m-p/541715#M134505</link>
      <description>&lt;P&gt;I have tried to use AEM targeting within experience fragment, so I have created audience, segments, activity etc... then I have created Header experience fragment and wanted to reconfigure Navigation component to show different links for anonymous and logged in users.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Targeting mode is available when authoring experience fragments (even in page properties you have got ContextHub configuration), so I thought it will work fine. However when I open the page where this experience fragment is used I see that page enters into the infinite loop and the "current url" is requested by ContextHub instead of url to campaign or experience fragment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have investigated in the page source that default segments got incorrect url:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{"path":"//default","name":"default","title":"Default","campaignName":"","thumbnail":"/.thumb.png","url":"","campaignPriority":0,"tags":[]}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;instead something like this&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{"path":"//default","name":"default","title":"Default","campaignName":"","thumbnail":"/.thumb.png","url":"/_jcr_content/root/container/header/content/experiencefragment.default.html","campaignPriority":0,"tags":[]}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When I use targeting on the page instead of experience fragment everything works fine. ContextHub is serving the correct fragment for resolved segment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do you have any idea how to fix it? or how to force targeting to works correctly on experience fragment?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 13:45:52 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-targeting-on-experience-fragment/m-p/541715#M134505</guid>
      <dc:creator>PiotrR</dc:creator>
      <dc:date>2022-08-19T13:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: AEM Targeting on experience fragment</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-targeting-on-experience-fragment/m-p/542012#M134593</link>
      <description>&lt;P&gt;I doubt if we can personalize Exp Fragment via contexthub. We can personalize content fragments but not ExP Fragment via&amp;nbsp;Contexthub. Content Fragments are like Assets whereas ExP Fragments are like pages. So, for contexthub we can only change components value but not component type/order/count. I would recommend using Adobe target for it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See:&amp;nbsp;&lt;A href="http://www.sgaemsolutions.com/2018/12/personalization-using-contexthub-in-aem.html" target="_blank"&gt;http://www.sgaemsolutions.com/2018/12/personalization-using-contexthub-in-aem.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;See:&amp;nbsp;&lt;A href="https://experienceleague.adobe.com/docs/experience-manager-learn/sites/personalization/experience-fragment-target-offer-feature-video-use.html?lang=en" target="_blank"&gt;https://experienceleague.adobe.com/docs/experience-manager-learn/sites/personalization/experience-fragment-target-offer-feature-video-use.html?lang=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Kautuk&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 10:38:10 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-targeting-on-experience-fragment/m-p/542012#M134593</guid>
      <dc:creator>kautuk_sahni</dc:creator>
      <dc:date>2022-08-22T10:38:10Z</dc:date>
    </item>
  </channel>
</rss>

