Tutorial AEM-Launch Integration

01 Aug 2021 » Launch

I have had to recently help a customer with the integration of Adobe Experience Manager (AEM) with Adobe Launch. If you have been following this blog for a while, you already know that my area of expertise is not precisely AEM, so I had to do the whole process to learn it first. To keep it handy for the future, I thought I would share the experience with all of you.

Over the years, I have noticed that, when it comes to technical descriptions, there are two types of people: those who prefer to read it and those who prefer to watch a video. If you prefer videos, then you should watch this series in the Experience League. However, if you are like me and prefer to read the process on one window/screen and apply it on another one, you are in the right place :-)

While, conceptually, this may not be the most complex integration you can find between Adobe tools, it is a bit tricky, as you need to play with 4 different interfaces: AEM, Launch, Admin Console and Adobe IO. Also, since this tutorial touches so many points, I will not be as detailed as I usually am.

I will also assume that you have the right permissions to do all the operations I am going to explain. It is way beyond this tutorial to explain how to configure the permissions for your user. In doubt, you should get support from the system administrator of the Adobe Admin Console for your organisation and your AEM instance. Either you can be granted the right permissions or work with different individuals who have the right access to the tools involved in this process. Admittedly, this requirement will add another level of complexity.

Before I start with the explanation, I also want to highlight that I am using AEM 6.5.9 running on my laptop. This should be the same for any hosted AEM and AEM managed by Adobe (Managed Services). I do not have access to AEM as a Cloud Service (AEMaaCS), so I am not 100% sure how the AEM steps will look like there.

Launch property

The first step is to have a Launch property, which you are going to use for this integration. There is no need to create a new one if you are going to use an existing one.

However, if you are starting from scratch, should create one first.

  1. Go to the Launch UI. Make sure that you are in the correct organisation.

  2. On the “Tag Properties” page, click on “New Property”. Launch new web property

  3. Choose an appropriate name and set the domain where it will be deployed.

That should give you the minimum you need to continue. However, if you are familiar with Launch, I would suggest that you add the Core extension to a library and publish it. This will make sure the Launch URLs have something.

Configure a Product Profile

Now you need to create a product profile that grants access to the newly created Launch property. If you are using an existing web property, you may have it already in one or multiple product profiles. However, I would suggest having a product profile for technical integrations.

  1. Go to the Adobe Admin Console. Confirm that you are in the same organisation where you have created the Launch property.

  2. Click on “Products” in the top menu.

  3. Locate the card for “Adobe Experience Platform” and click on it. Do not click on the “more options” or “Assign Users” buttons. You can also find the link on the left menu. Product Profile Launch

  4. Click on “New Profile” to create a new one and give it a name. There are some optional fields that you may want to populate so that you know in the future why you created this product profile. I would disable the notification at the bottom (notify users by email).

  5. You should have been sent back to the list of product profiles for Launch.

  6. Click on the newly created profile and select “Permissions”. Permissions Product Profile Launch

    1. Click on “Edit” in the “Platform” row and remove all platforms except for “Web”.
    2. Click on “Edit” in the “Properties row, disable “Auto include” and add only the web property/ies that need to be inserted in AEM websites.
    3. You do not need any “Property Rights” and “Company Rights”

Connect AEM to Adobe IO

The next step is to create the connection between AEM and Adobe IO. Remember that AEM runs as a stand-alone application and you need to first connect it to your Adobe organisation. In this process, you will need to work in parallel with the two tools in this section. I, therefore, recommend that you keep two browser windows/tabs open, one for each.

This integration needs a public/private key pair. Before proceeding, you should check the security policies of your company, to see whether it is acceptable to let AEM generate this key pair or it needs to be generated following a more strict procedure. In this latter case, I will assume that you have already created this certificate, uploaded it to your AEM instance and configured AEM to recognise it.

  1. In AEM, go to “Adobe IMS Configurations” AEM IMS configuration

  2. Click on “Create”.

  3. On the next screen: AEM certificate
    1. Select “Adobe Launch” as “Cloud Solution” (quite obvious).
    2. Under “Certificate”:
      1. If you have configured it beforehand, select it. Keep handy the public key for this certificate.
      2. Otherwise, enable the checkbox “Create new certificate”, give it an alias, click on “Create certificate” and click on “OK” in the info overlay. You will also need to download the public key.
  4. Leave the AEM wizard unfinished and go to the Adobe Developer Console, also known as Adobe IO. Again, check that the Adobe organisation is correct.

  5. Click on “Create a new project”.

  6. Click on “Edit project” to give it a better name and, when done, click on “Add API”. New Adobe IO project

  7. Search and select “Experience Platform Launch API” and click on “Next”.

  8. Since we have already generated the certificates, select “Upload your public key” and upload the public key from step 3.b. Click “Next” and “Next” again.

  9. Select the product profile you have created in the Admin Console earlier. With this, you are creating a technical user, which will have the permissions described in this product profile.

  10. Click on “Save configured API”.

  11. Click on “Service account (JWT)” under “Credentials”. You will see the “Credential details” for this account. Adobe IO credentials

  12. Go back to the AEM tab and click on “Next”. Be prepared to switch between the AEM and Adobe IO tab/windows. AEM - Adobe IO Credentials
    1. Title. Give it a meaningful name.
    2. Authorization Server. Skip it for now.
    3. API Key. Copy and paste the value of “Client ID” from the Adobe IO tab.
    4. Client Secret. In Adobe IO, click on “Retrieve client secret” and copy and paste it in AEM.
    5. Payload. In Adobe IO, click on “Generate JWT” and copy and paste the whole JWT Payload.
    6. Authorization Server. In the payload above, you will see 2 URLs with the same domain. Copy one of these URLs, paste it and remove the whole path. At the moment of writing, I believe there is only one value: https://ims-na1.adobelogin.com.
  13. Click on “Create”.

  14. Optionally, if you want to check that the configuration is working, select it and click on “Check Health”. You should get a positive message.

You have finally connected AEM with your Adobe Organisation, with some credentials that have specific permissions.

Configure AEM Site

We can now stay in AEM for the rest of the configuration. Now is when all the steps we have taken so far make sense.

  1. Go to the “Adobe Launch Configuration” AEM Launch config

  2. Select the site where you want to add the Launch property configured at the beginning of this tutorial. Do not select by clicking on the folder icon, but on the name.

  3. Click on “Create”.

  4. Configure the Launch web property. AEM Launch config
    1. Title. Give it a meaningful name.
    2. Associated Adobe IMS Configuration. Select the configuration you have enabled just before.
    3. Company. From the dropdown, select your Adobe organisation, although you will probably get only one option.
    4. Property. Select the one you are interested in. It will be one of those you have configured in the product profile.
    5. Include Production Code on Author. I always leave it disabled.
  5. Click on “Next”.

  6. Select the staging configuration options. This is what you will get in AEM author when viewing the website as in production. a. Archive. You will probably not be able to change this. I am not going to explain this feature, as it is not trivial. b. Load Library Asynchronously. Depends on your final Launch implementation. c. Library URI. Do not change it.

  7. Click on “Next” and do the same for production (i.e. AEM Publish).

  8. Click on “Create”.

Finally, after this convoluted process, you have Launch on your website. Check the generated code in AEM Publish and you should see the Launch script in the <head> of your HTML code.

 

Photo by Bianca Ackermann on Unsplash



Related Posts