[Integration]{class="badge positive"}
Create a Tag Property create-tag-property
[AEM Sites as a Cloud Service, AEM Sites 6.5]{class="badge informative"}
Learn how to create a Tag property with the bare-minimum configuration to integrate with Adobe Experience Manager. Users are introduced to the Tag UI and learn about extensions, rules, and publishing workflows.
Tag property creation
To create a Tag property, complete the following steps.
-
In the browser, navigate to the Adobe Experience Cloud Home page and login using you Adobe ID.
-
Click the Data Collection application from the Quick access section of the Adobe Experience Cloud Home page.
-
Click the Tags menu item from the left navigation, then click New Property from top-right corner.
-
Name your Tag property using the Name required field. For Domains field, enter your domain name or if using AEM as a Cloud Service environment enter
adobeaemcloud.com
and click Save.
Create a New Rule
Open the newly created Tag property by clicking its name in the Tag Properties view. Also under My Recent Activity heading you should see that the Core extension added to it. The Core tag extension is the default extension and it provides foundational event types such as page-load, browser, form, and other event types, see Core extension overview for more information.
Rules allow you to specify what should happen as the visitor interacts with your AEM site. To keep things simple, let’s log two messages to the browser console to demonstrate how data collection Tag integration can inject JavaScript code into your AEM site without updating AEM Project code.
To create a rule, complete the following steps.
-
Click Rules from the AUTHORING section of the left navigation and then click Create New Rule
-
Name your rule using the Name required field.
-
Click Add from the EVENTS section, then in the Event Configuration form, in the Event Type dropdown select Library Loaded (Page Top) option and click Keep Changes.
-
Click Add from the ACTIONS section, then in the Action Configuration form, in the Action Type dropdown select Custom Code option and click Open Editor.
-
In the Edit Code modal, enter following JavaScript code snippet, then click Save, and finally click Keep Changes.
code language-javascript console.log('Tags Property loaded, all set for...'); console.log('capabilities such as capturing data, conversion tracking and delivering unique and personalized experiences');
-
Click Save to finish the rule creation process.
Add Library and publish it
The Tag property Rules are activated using a library, think of the library as a package containing JavaScript code. Activate the newly created rule by following the steps.
-
Click Publishing Flow from the PUBLISHING section of the left navigation, then click Add Library
-
Name your library using the Name field and select Development(development) option for Environment dropdown.
-
To select all the changed resources since the Tag property creation, click + Add All Changed Resources. This action adds the newly created rule and core extension resource to the library. Finally click Save & Build to Development.
-
Once the library is built for the Development swim lane, using ellipses select the Submit for Approval
-
Then in the Submitted swim lane using ellipses select the Approve for Publishing, likewise Build & Publish to Production in the Approved swim lane.
Above step completes the simple Tag property creation that has a rule to log a message to browser console when the page is loaded. Also the rule and core extension is published by creating a library.
Next Steps
Connect AEM with Tag Property using IMS