Configuring Page View Event with OneTrust Consent in AEM Analytics Integration
Hello Experience League Community,
I’m working on configuring Adobe Analytics in AEM Sites and have successfully set up page view tracking using the guidance from this documentation:
[Collect Data for Analytics in AEM Sites](https://experienceleague.adobe.com/en/docs/experience-manager-learn/sites/integrations/analytics/collect-data-analytics)
Now, we also need to ensure that page view events are only triggered after the user has given consent via OneTrust.
My question is:
- What changes do I need to make to the existing rule configuration so that the page view event fires only after consent is granted?
- Should the page view rule be modified to listen for OneTrust’s consent event before triggering the Analytics beacon?
- Are there best practices or recommended approaches for integrating OneTrust consent with Adobe Analytics page view tracking in AEM?
Any guidance, examples, or references would be greatly appreciated.
Thank you!