A developer is adding a reference script to a third-party analytics tool. The script needs to be editable since it is being modified on a schedule outside of the team’s development cycle.
How should the developer complete this task?
A.
Add a new component with the script in the HTL.
B.
Add the script to the page policy on the template.
AEM provides Generic Analytics Snippet functionality to allow marketing/analytics teams to manage third-party tracking scripts directly through the AEM UI, without needing a development release cycle. This enables non-developers to add or update scripts (e.g., analytics tags, marketing pixels) safely.
Option A is incorrect: Hardcoding the script in HTL means dev releases are required for every change.
Option B is incorrect: Page policies control design configurations and allowed components, not scripts.
Option C is correct: Generic Analytics Snippet is designed for this scenario.
Adobe Documentation:
“AEM provides a generic analytics snippet component that allows administrators to add and manage third-party tracking codes outside of the development cycle.”
— AEM Sites – Generic Analytics Snippet
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit