The Personal Data Authority (AP) has published a guide on how to set up Google Analytics in a privacy-friendly way.
If you use Google Analytics, you are processing personal data of your website visitors with analytical cookies. Are you not asking permission to place these analytical cookies? Then go through the 6 steps in this guide to set up Google Analytics privacy-friendly. This is necessary to comply with the General Data Protection Regulation (AVG).