These code snippets were inserted into the pages of a WordPress site, either by the theme or Site Kit, after I performed the GA upgrade from Universal Analytics to GA4. I'd like to confirm if they appear to be correct.
Additionally, if the Site Kit plugin is installed, is it still necessary to manually add GA code via a WordPress theme, or does Site Kit handle all of this for us?
<head>
<!-- Google Analytics opt-out snippet added by Site Kit -->
<script type="text/javascript">
window["ga-disable-UA-48673498-1"] = true;
</script>
<script type="text/javascript">
window["ga-disable-G-SHQPQ85CD4"] = true;
</script>
<!-- End Google Analytics opt-out snippet added by Site Kit -->
<!-- Google Analytics snippet added by Site Kit -->
<script type='text/javascript' src='www.googletagmanager.com/gtag/js?id=UA-48673498-1' id='google_gtagjs-js' async></script>
<script type='text/javascript' id='google_gtagjs-js-after'>
window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}
gtag('set', 'linker', {"domains"🙁"foo.com.au"]} );
gtag("js", new Date());
gtag("set", "developer_id.dZTNiMT", true);
gtag("config", "UA-48673498-1", {"anonymize_ip":true});
gtag("config", "G-SHQPQ85CD4");
</script>
<!-- End Google Analytics snippet added by Site Kit -->
</head>