If you would use the standard Mendix cloud you would need to download the postgres database and do the analysis on the local downloaded database. That is what we do to analyse trends on records. If you would use an on premise installation you have more freedom to directly do analyses on the database of your choice.
For Google analytics look at the documentation here: https://docs.mendix.com/appstore/widgets/google-analytics
Regards,
Ronald