Google Analytics is a tool used for processing WordPress statistics and performance. When using google analytics, ensure that you do not store user data without setting the specifics as anonymous, and let users know that they are being tracked.
If your google analytics dashboard shows users' location, you are probably not GDPR compliant. When you implement google analytics by just putting a code snippet in your header or footer, you will not achieve GDPR operation standards; however, Monster insights is a WordPress privacy plugin that automates google analytics' consent process.
There are other areas of your WordPress site that you must ensure that you are GDPR compliant. They include Email Marketing Forms (herein, you have to expressly ask the user for permission before sending them marketing ads), E-commerce, affiliate links, google ads, surveys, and more.