I have a module that tracks users engagement in magento. This module inserts the user data inside the HTML.
The problem is: some of my clients are using full page cache and the user data are cached in the HTML. If you log in a cached page, you will get the wrong user data.
To fix this, i was thinking if i could get the user data from a AJAX request. But i cant find the endpoint to do this.
Can someone help me with this?