WP Global Site Tag (gtag.js) provides a framework for streamlined web page tagging – giving you better control while making implementation easier. Using gtag.js lets you benefit from the latest tracking features and integrations as they become available. This is the WordPress version.
To use gtag.js to track your site, install the plugin and activate.