Tuesday, 31 March 2015

Creating an AEM Event Listener that tags pages

You can develop a custom event handler for Adobe Experience Manager (AEM) that uses the TagManager API to add a tag to a new page. That is, when an AEM author creates a new page using site admin, an AEM event handler automatically tags the page. To work with tags, you use the AEM TagManager API.

This article will get you up and running with using the TagManager API, including how to build an OSGi bundle and include all of the POM dependencies. To read this development article, click https://helpx.adobe.com/experience-manager/using/tagmanager.html

Adobe Digital Marketing Community

Join the Adobe Digital Marketing Community. Start by clicking this banner

About the Author

I (Scott Macdonald) am a Senior Digital Marketing Community Manager at Adobe Systems with over 16 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more CQ or other Adobe Digital Marketing end to end articles like this, then leave a comment and let me know what content you would like to see.
TwitterFollow the Digital Marketing Customer Care team on Twitter @AdobeMktgCare.

1 comment:

  1. It won't work when using templates that are configured with initial components, since the while loop returns as soon if the first node it encounters is not cq:PageContent. Changing "return" to "continue" does the trick.