If you are using Cloudflare, it is a bit more efficient to use Zaraz to load the Google Analytics code
https://developers.cloudflare.com/zaraz/If you add Google Analytics in the custom code in Webstudio, it will still work. It can take a few hours for Google Analytics to read the code. Check today to see if it is working.