Login to the admin area and navigate to SEO > Analytics.
Confirm that Analytics is enabled.
Add your UA- or GA-4 code in the correct fields.
Please note: if you are using a UA- code, validate that it is still working. as this may have stopped working after June 2023.
If you enter your GA-4 code in the wrong field it will not work correctly!