---
title: How to Activate AEM Content Fragments to AJO
slug: docs/how-to-activate-aem-content-fragments-to-ajo
docTags: 
createdAt: 2025-02-07T08:39:40.756Z
---

## Objective

The primary objective is to provide a comprehensive guide to using Content Fragments (CF) from Adobe Experience Manager (AEM) with Adobe Journey Optimizer (AJO).

## Prerequisites

1. Access to **AEM instance, Content Fragment UI,** and **AJO environments**.
2. Permissions are required to manage tags in AEM and access content fragments.
3. A clear understanding of the organizational structure within AJO (Org ID, Sandboxes).

## Configuration

This feature is enabled on **Adobe Demo System Shared Org([AJO](https://experience.adobe.com/#/@demosystem4/sname\:prod/journey-optimizer/home), [AEM](https://author-p97303-e890303.adobeaemcloud.com/ui#/aem/aem/start.html?appId=aemshell))** and **Prod Sandbox**.&#x20;

:::hint{type="info"}
To use other sandboxes within the *Adobe Demo System Shared&#x20;*&#x6F;rg, you will need to create dedicated tags following the example below.
:::

The below steps need to be followed in sequence to activate your **Org** for this feature.

1. Go to your AEM instance.

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-KQN3eZeezsAug04XmuKw3-20250207-085338.png)

2\. Go to **AEM > tools > General > Tagging.**

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-ECue0uCLtqGUZjVcBZlXh-20250207-090239.png)

3\. Click on **Create > Create Namespace.&#x20;**&#x47;ive the title **"AJO Enabled"(Do not Change Name)&#x20;**&#x79;ou will see the **Name** field already created and add a short description.

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-rO2sLiyF8_K-7dCAHmQoT-20250207-090716.png)

Click on **Create** and you will see the **namespace** created in the left rail.

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-Iq0pdR9sCmi-77wyGWTKA-20250207-090902.png)

4\. Select the **namespace** by clicking on the **checkbox** against it and a top bar appears click on **Create Tag.**

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-GYnjVK9HwGZslDe1WmnOb-20250207-091258.png)

5\. **Before this step, have AJO Org ID and Sandbox name handy**. Now this is the most important step for this integration a form will appear for creating a tag with a **Title**, **Name,** and **Description.&#x20;**

In the **Name** field put your **AJO-OrgID/AJO-Sandboxname (Do not change the format).**

**Example**:- For **ADSS Org** and **Prod Sandbox** we have - 0E061E2D61F93F260A495FD6\@AdobeOrg/prod

In the **title** field, you can give a friendly name to identify the Org and Sandbox and give a short **description**.

Example:- **ADSS Prod**&#x20;

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-qiVOGlEFAqlKd6uMY-GKT-20250207-092620.png)

Click on **Submit** and a **tag** will be created and your **AEM and AJO instances will be integrated for Content Fragments**.

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-RcupB0SLqrERLN-RNSFRn-20250207-095412.png)

## Linking Tags and Content Fragments

1. Go to **Content Fragments** in AEM&#x20;

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-jOF0mpZPZtGuOgS4d1kgz-20250207-095650.png)

2\. Select your **Content Fragment** open it and apply the **ajo-enabled tag** to it by clicking **Save**.

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-TXoEzm02kmR6eqHZZOBo5-20250207-100030.png)

3\. You can go to the Content Fragments menu and filter b&#x79;**&#x20;ajo-enabled** tag and you will see your content fragment in the list.

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-qDaN6PN6K_U70s76pf41m-20250207-100300.png)

## Utilizing AEM Content Fragments in AJO

1. Go to your **Campaign/Journey&#x20;**&#x69;n AJO.
2. Currently, this feature is only available for the <u>**Email Channel**</u><u>.</u> Go to your email content and click on Edit Email body.

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-YglF3n9pO7jVPUImG3S0T-20250207-101214.png)

3\. Then you can select either **Import From HTML** or **Design From Scratch**.

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-_yBvu84kg0CEvnbPY5r_m-20250207-101450.png)

4\. Select any of the above option&#x73;**(For Example Selected Design From Scratch)** and drop a **structure component** and inside that drop **text** or **HTML** component. **(For Example Selected HTML Component)**

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-HcEw5FsSNeSeRGfycP5Rq-20250207-102206.png)

Click on the **code block sign (\</>)&#x20;**&#x66;or the **HTML Component** or **Personalization Sign** in **text component.&#x20;**&#x59;ou will see the editor opened with the **AEM Content Fragment option** in the left rail.

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-9qO_oraUAiniVXs-U5P6P-20250207-102536.png)

5\. Click on the **AEM Content fragment&#x20;**&#x61;nd click on the **AEM CF Selector.**

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-midASkjRKw68AeQzhe337-20250207-102728.png)

this will open the **AEM Content Fragment menu** with your **Content Fragment** to **select and utilize in AJO Emails.**

![](https://api.archbee.com/api/optimize/5DDrYpNrf6iEJahKpoKSv-2EQcHn9pX2RjWXP8gUoaF-20250207-102957.png)

##

<font color="#ae4821">**Check out the existing Content Fragment Created for Public Projects and steps related to create Content Fragment in AEM** </font>[AEM Content Fragments in AJO For Luma, Securfinancial & Bodea](docId:1cVbntl0Q5ioS6qJJn6ZB)&#x20;

## NOTES

1. **Apply Single Tag**: Always apply only one ajo-enabled tag to a Content Fragment. Multiple ajo-enabled tags with different Org IDs/sandboxes are not supported.
2. Currently, this feature is only available for the **Email** Channel.
3. Please follow the **tag structure** and **namespace** convention strictly as per the Document.
4. A content fragment is just a JSON with a key-value pair provided to AJO. So the images coming from assets don't have full path. We created a **data type extension** in all Content Fragments and assigned them publisher instance value([https://publish-p97303-e890303.adobeaemcloud.com](https://publish-p97303-e890303.adobeaemcloud.com)) so a complete image URL is passed in AJO emails and to make the image render.



