The analytics atom was changed a long time ago to use gtag.js and that works with GA$ as far as I am aware. Even if it doesn't fulfill your requirement then just don't use that atom and instead paste the code that you want in the "head properties" on the "page settings" tab of the base outline.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Is there a way to set up Google Analytics GA4 with Gantry now?
I tried the previous method by adding the Custom CSS/JS to the Gantry Global Page Settings, however the code appeared on my site.
If not, what do you recommend?