Quote Originally Posted by Techiant View Post
I get that but my question is, is there a way to insert a new GA4 analytics code somewhere into the header file? I mean it's just a Javascript tracking code. Why is there a necessity for a plug in?
It depends on whether you want 'basic' tracking (i.e. page-traversal) or the 'ecommerce' events (someone added something to the cart or completed checkout).

If it's only 'basic' tracking, then just add the Google-recommended javascript to your template's html_header.php file; if you want the 'ecommerce' events, you'll need the plugin.