Step 1. Create a Google Analytics account
Step 2. Create a web stream
Step 3. Add the web stream to Google Sites in Admin - Analytics
Step 4. Create a Google Search Console account and verify your site. Only add the URL prefix with no page name at the end, like https://sites.google.com/view/ent-minded/
Step 5. Ask Google to crawl your site. It may take weeks to get indexed and months to get ranked. Google Sites does not require, or support, sitemap files. Just make sure you can get to all pages in your site through links from your home page. Your home page doesn't need a direct link to every page.
There are two types of Google Analytics properties, the older Universal Analytics (UA) type and the newer Google Analytics 4 (GA4) type. There are some benefits of both. The GA4 property gets created by default. To create the UA type, in the Google Analytics Admin panel, click Create Property, set the proper time zone, then click Show advanced options, move the slider over across from Create a Universal Analytics property, then select the radio button to Create a Universal Analytics property only (since you already have a GA4 property).
With the new UA property you will see a third column in the Admin panel that contains Goals.
To get the Tracking ID for this property to add to Google Sites, click Tracking Info and then Tracking Code. Copy the Tracking ID into Google Sites in Admin - Analytics.
You can add both properties in Google Search Console - Settings - Associations