You define rules in the Activation web client, as shown in this illustration.
The previous illustration shows an Activation rule named TestOnLoadChrome. This rule is basically an event handler that is fired when a web page is opened. The condition is defined so that this rule fires only when the browser is Chrome. The logic that is defined is simply JavaScript that creates a pop-up message.
alert("Hello Chrome - this is a DM rule");
Once you define and approve Activation rules using the Activation web client, you can embed these rules into AEM web pages. When this rule is embedded into an AEM web page, this rule is fired when an AEM web page is opened in Chrome, as shown in this illustration.
To read this article, click https://helpx.adobe.com/experience-manager/using/aem62_dtm.html.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.