How to Add Google Analytics 4 to a WordPress Website

A guide on how to add Google Analytics 4 to a WordPress website
When you visit any web site, it may store or retrieve information on your browser, mostly in the form of cookies. Control your personal Cookie Services here.