Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Do we really need to remove <html> and <body> tag for xf to be exported to Adobe Target?

Avatar

Community Advisor

Hi Team,

I need to export some experience fragment to adobe target as an offer. After integrating target with AEM I am able to push the xf to target but when I use those xf in any activity, created in traget, xfs are not visible in the entire container so I suspect this is happening due to <html> and <boyd> tag available in the exported xfs html.

When googling I find below community article which says some modification needs to be done on the xfpage structure component but when I refer

https://experienceleague.adobe.com/docs/experience-manager-65/administering/integration/experience-f...

WKND demo site there was no su modification on the xfpage level but it still working fine in some of the community demo so can anyone please tell me whether it is really needed?

Thank

Umesh Thakur

 

1 Accepted Solution

Avatar

Correct answer by
Administrator

@Umesh_Thakur 

Yes, it is recommended to remove the <html> and <body> tags when exporting Experience Fragments (XFs) to Adobe Target. While these tags are not strictly required for XFs to work in Target, removing them can provide several benefits:

  1. Improved Performance: Removing the <html> and <body> tags reduce the size of the exported XF code, which can lead to faster loading times and improved performance in Target.

  2. Reduced Conflicts: The <html> and <body> tags can potentially introduce conflicts with the existing page structure in Target, which can cause rendering issues. Removing these tags eliminates this possibility.

  3. Better Integration: Removing the <html> and <body> tags ensure that the XF content seamlessly integrates with the Target environment, avoiding potential inconsistencies or compatibility issues.

  4. Simplified Configuration: Removing the <html> and <body> tags simplifies the configuration process for using XFs in Target, as there is no need to worry about potential conflicts or compatibility issues.

  5. Consistent Behavior: Removing the <html> and <body> tags ensure that XFs behave consistently across different environments in AEM and Target.

Overall, removing the <html> and <body> tags is recommended for exporting XFs to Adobe Target, as it enhances performance, reduces conflicts, improves integration, simplifies configuration, and promotes consistent behavior.



Kautuk Sahni

View solution in original post

1 Reply

Avatar

Correct answer by
Administrator

@Umesh_Thakur 

Yes, it is recommended to remove the <html> and <body> tags when exporting Experience Fragments (XFs) to Adobe Target. While these tags are not strictly required for XFs to work in Target, removing them can provide several benefits:

  1. Improved Performance: Removing the <html> and <body> tags reduce the size of the exported XF code, which can lead to faster loading times and improved performance in Target.

  2. Reduced Conflicts: The <html> and <body> tags can potentially introduce conflicts with the existing page structure in Target, which can cause rendering issues. Removing these tags eliminates this possibility.

  3. Better Integration: Removing the <html> and <body> tags ensure that the XF content seamlessly integrates with the Target environment, avoiding potential inconsistencies or compatibility issues.

  4. Simplified Configuration: Removing the <html> and <body> tags simplifies the configuration process for using XFs in Target, as there is no need to worry about potential conflicts or compatibility issues.

  5. Consistent Behavior: Removing the <html> and <body> tags ensure that XFs behave consistently across different environments in AEM and Target.

Overall, removing the <html> and <body> tags is recommended for exporting XFs to Adobe Target, as it enhances performance, reduces conflicts, improves integration, simplifies configuration, and promotes consistent behavior.



Kautuk Sahni