{"id":5270,"date":"2018-10-01T17:01:26","date_gmt":"2018-10-01T11:31:26","guid":{"rendered":"\/?p=5270"},"modified":"2020-01-06T14:01:39","modified_gmt":"2020-01-06T08:31:39","slug":"aem-dtm-target-integration-simplified-part1","status":"publish","type":"post","link":"https:\/\/www.argildx.us\/technology\/aem-dtm-target-integration-simplified-part1\/","title":{"rendered":"AEM-DTM-Target Integration. Simplified! – Part1"},"content":{"rendered":"
AEM-DTM-Target integration takes advantage of the tremendous extensibility of AEM. The primary aim is to integrate AEM with Adobe Target to enable the creation and delivery of personalized experiences<\/u><\/a> for specific audiences. However, using DTM as a technology bridge will facilitate the integration of AEM with Target.<\/p>\n Let\u2019s start by introducing the three solutions in Adobe Experience Cloud.<\/p>\n <\/b>AEM can be integrated with Target directly without using DTM. However, it\u2019s recommended to use DTM in between due to listed benefits:<\/p>\n AEM is usually connected with DTM using AEM Cloud Services and Target is connected to DTM using Experience Cloud configuration. Here is the relevant diagram for AEM-DTM-Target integration.<\/p>\n <\/p>\n How a request flows from AEM to Target via DTM:<\/p>\n As you might have noticed in request flow that AEM site has got the DTM Script and Data Layer associated. Data layer is a W3C standard to store values in javascript object. Data layer is created at AEM and consumed by DTM to get the required data from AEM instance and push to any solution like Analytics, Target, etc. We are going to create a sample data layer below in DTM Rules section.<\/p>\n To get the access of DTM, one has to raise the request with Adobe Client Care with proper information. Once the access is granted, go to https:\/\/dtm.adobe.com<\/a>\u00a0and login with the credentials provisioned by Client Care.<\/p>\n To start with DTM, create a new property with the URL of the website. Thereafter add the required tools in the property like Adobe Analytics or Adobe Target. In AEM configuration, we are going to use same DTM Property\u00a0in order to\u00a0integrate the AEM with Analytics,\u00a0Target, etc.<\/p>\n For this article, we are going to add Adobe Target as we need to carry out AEM-DTM-Target integration. To do this, we need Client Code which will be provided by the Client Care or alternatively you can try adding using Experience Cloud membership.<\/p>\n <\/p>\n In above steps you have created a new DTM property, added Target as a tool in the same property. Now you need to know how to play with data, DTM uses data layer to get the data from AEM instance. For example, using Target you need to render the homepage of your website based on the browser, location, devices, etc or you can also get user-specific details like age, gender, interests, etc. Hence you need to get all such information from AEM in data layer. For example, here is the data layer: Once the data-layer is all set,\u00a0fetch the values from data layer and set it in DTM data elements.\u00a0We use\u00a0these data elements in different types of rules.\u00a0DTM has got three type of rules: <\/p>\n <\/p>\n Fig: DTM Rules<\/p>\n Creating a data element using data layer is quite straight forward.\u00a0<\/span><\/span>Y<\/span><\/span>ou can see the below screenshot, he<\/span><\/span>re<\/span><\/span>\u00a0we have create<\/span><\/span>d a new data element Page Title which is mapped with\u00a0<\/span><\/span>pageName<\/span><\/span>\u00a0field of data layer<\/span><\/span>\u00a0created above<\/span><\/span>.\u00a0<\/span><\/span>\u00a0<\/span><\/p>\n Fig: Data Elements<\/p>\n Every property in DTM follows a standard workflow. Workflow has got three steps:<\/p>\n Using AEM admin console, go to Tools >\u00a0Deployment\u00a0> Cloud Services. Find\u00a0\u2018Dynamic Tag Management\u2019\u00a0and click on\u00a0\u2018Configure now\u2019.\u00a0Provide a Title and Name of the configuration keeping Parent Configuration field intact.\u00a0Enter the details as below:<\/p>\n\n
Architecture<\/b>:<\/b><\/h5>\n
\n
<\/p>\n
Request Flow for AEM-DTM-Target Integration:<\/b><\/h5>\n
\n
Data Layer:<\/b><\/h5>\n
DTM Setup:<\/b><\/h5>\n
DTM Rules:<\/b><\/h5>\n
\n<\/i><\/p>\n var dataLayer = {}\r\n dataLayer.page = {\r\n pageInfo: {\r\n pageName: document.title,\r\n url: document.location\r\n }\r\n }<\/pre>\n
\n1. Event Based Rule<\/strong>\u00a0\u2013 Rules executed when visitor interacts with on-page elements.
\n2. Page Load Rule<\/strong>\u00a0\u2013 Rules executed when visitor loads the page.
\n3. Direct Call Rule<\/strong>\u00a0\u2013 Rules executed when you want to tell DTM to do something specifically.<\/p>\n<\/p>\n
<\/p>\n
DTM Workflow:<\/b><\/h5>\n
\n
AEM-DTM Integration:<\/b>
\nThere are two ways to integrate DTM with AEM:<\/h5>\n\n
\n